/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0d0d0d;
    overflow-x: hidden;
    position: relative;
}

/* Efecto de luz difusa en el fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 30% 30%, 
        rgba(255,255,255,0.03), 
        transparent 60%
    ),
    radial-gradient(
        circle at 70% 70%, 
        rgba(0,123,255,0.02), 
        transparent 50%
    );
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    z-index: 1000;
    padding: 1.2rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

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

.nav-menu a {
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: #007bff !important;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #007bff;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff !important;
    margin: 3px 0;
    transition: 0.3s;
}

/* Sección Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #0d0d0d;
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 20% 20%, 
        rgba(0,123,255,0.1), 
        transparent 50%
    ),
    radial-gradient(
        circle at 80% 80%, 
        rgba(255,255,255,0.05), 
        transparent 50%
    );
    opacity: 0.6;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, #007bff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #007bff;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.4);
    background: #0056b3;
}

.btn-primary::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover::after {
    transform: translateX(3px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Visualizador de música */
.music-visualizer {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 4px;
    height: 200px;
}

.bar {
    width: 8px;
    background: linear-gradient(to top, #007bff, #00d4ff);
    border-radius: 4px;
    animation: musicWave 1.5s ease-in-out infinite;
}

.bar:nth-child(1) { height: 40px; animation-delay: 0s; }
.bar:nth-child(2) { height: 80px; animation-delay: 0.1s; }
.bar:nth-child(3) { height: 120px; animation-delay: 0.2s; }
.bar:nth-child(4) { height: 160px; animation-delay: 0.3s; }
.bar:nth-child(5) { height: 200px; animation-delay: 0.4s; }
.bar:nth-child(6) { height: 160px; animation-delay: 0.5s; }
.bar:nth-child(7) { height: 120px; animation-delay: 0.6s; }
.bar:nth-child(8) { height: 80px; animation-delay: 0.7s; }

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

/* Secciones generales */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Sección Sobre Mí */
.about {
    background: #0d0d0d;
    padding: 6rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.about-text p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.stat h4 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
}

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

.artist-photo {
    width: 350px;
    height: 350px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.artist-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.artist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Sección Proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.project-image {
    height: 200px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 20px 20px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

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

/* Posicionamiento específico para cada imagen */
.project-card:nth-child(1) .project-image img {
    object-position: center top;
}

.project-card:nth-child(2) .project-image img {
    object-position: center center;
}

.project-card:nth-child(3) .project-image img {
    object-position: center top;
}

.project-card:nth-child(4) .project-image img {
    object-position: center top;
}

.play-button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.play-button i {
    color: #ffffff;
    font-size: 1rem;
    margin-left: 2px;
}

.project-info {
    padding: 2rem;
}

.project-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.project-info h3 {
    font-size: 1.4rem;
    margin: 0;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.project-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.year {
    background: #007bff;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

/* Sección Música */
.music {
    background: #0d0d0d;
    padding: 6rem 0;
}

.platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.platform-card {
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.platform-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff 0%, #00d4ff 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

.platform-card h3 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

.platform-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.platform-link {
    background: #007bff;
    color: white;
    padding: 1rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

.platform-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.4);
    background: #0056b3;
}

/* Sección Contacto */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.contact-item i {
    width: 24px;
    margin-right: 1rem;
    color: #007bff;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #007bff 0%, #00d4ff 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

.social-links a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.4);
}

.contact-form {
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #0d0d0d;
    color: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Efecto de scroll en navbar */
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 20px !important;
}

/* Asegurar que la navbar siempre mantenga el efecto glassmorphism */
.navbar * {
    color: #ffffff !important;
}

.navbar .nav-menu a:hover {
    color: #007bff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
        padding: 1rem 1.5rem;
        border-radius: 15px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.3) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        width: calc(100% - 20px);
        left: -100%;
        margin: 0 10px;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15);
        padding: 2rem 0;
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 15px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .platforms {
        grid-template-columns: 1fr;
    }
}
