:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --blue-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --green-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --orange-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --text-color: #333;
    --text-light: #464646;
    --text-dark: #000;
    --bg-color: #f8f9fa;
    --bg-light: #ffffff;
    --bg-card: #fff;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 16px;
}

[data-theme="dark"] {
    --primary-color: #4895ef;
    --primary-dark: #3f37c9;
    --secondary-color: #4361ee;
    --accent-color: #4cc9f0;
    --success-color: #20c997;
    --warning-color: #ffc107;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --blue-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --green-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --orange-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --text-color: #f8f9fa;
    --text-light: #767676;
    --text-dark: #fff;
    --bg-color: #121212;
    --bg-light: #1e1e1e;
    --bg-card: #2a2a2a;
    --border-color: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Overlays para modo oscuro */
[data-theme="dark"] .section:not(.social-section)::before {
    background: rgba(18, 18, 18, 0.5);
}

[data-theme="dark"] .section.bg-light::before {
    background: rgba(255, 255, 255, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: var(--transition);
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

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

.section {
    padding: 80px 0;
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fondo para secciones normales */
.section:not(.bg-light):not(.social-section) {
    background-image: url('../Imgs/fondo_oscuroo.jpg');
}

/* Fondo para secciones bg-light */
.section.bg-light {
    background-image: url('../Imgs/fondo_dia.jpg');
}

/* Overlay para mejorar legibilidad del texto */
.section:not(.social-section)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.section.bg-light::before {
    background: rgba(248, 249, 250, 0);
}

/* Asegurar que el contenido esté por encima del overlay */
.section > .container {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: white;
}

body.dark-mode .btn-outline {
    color:  white;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Navigation */
.navbar {
    padding: 20px 0;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
}

/* Al hacer scroll */
.navbar.scrolled {
    background-color: var(--bg-card);
    box-shadow: var(--shadow);
    padding: 15px 0;
}

/* Soporte para modo oscuro */
/* Ya no necesario, modo oscuro por defecto */

/* Navbar branding */
.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
}

/* Enlaces del navbar */
.nav-link {
    font-weight: 500;
    padding: 8px 15px !important;
    color: var(--text-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Botón toggler */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}


.btn-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;     /* Puedes ajustar según tu preferencia */
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    margin-left: 15px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50%;
}

.btn-theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(30deg);
}

.btn-cv {
    background-color: #3f37c9;
    color: whitesmoke;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.7), rgba(66, 66, 66, 0.7)), url('../Imgs/fondo.jpg') no-repeat center center/cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 15px;
    animation: fadeInUp 1s ease 0.6s both;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: white;
    font-size: 1.5rem;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center; /* Centrado en el eje X */
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    width: 65%; /* Tamaño más pequeño */
}

.profile-img {
    display: block;
    width: 100%; /* Se adapta al tamaño del contenedor .image-wrapper */
    height: auto;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: var(--transition);
}

/* Hover solo sobre la imagen */
.profile-img:hover + .image-overlay {
    opacity: 1;
}

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


.about-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: rgba(67, 97, 238, 0.8);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-links {
    opacity: 1;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-link:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skills-category {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skills-category:hover {
    transform: translateY(-5px);
}

.skills-category-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.skills-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.skill-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border-radius: 50%;
    transition: var(--transition);
}

.skill-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.skill-item:hover .skill-icon {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.skill-item:hover .skill-icon img {
    filter: brightness(0) invert(1);
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-details a {
    color: var(--text-color);
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-light);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-light) 100%);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--purple-gradient);
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition);
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo:hover {
    transform: translateY(-2px);
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.footer-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--blue-gradient);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 25px;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-contact .contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact .contact-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-contact .contact-info i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.footer-contact .contact-info p:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-social .social-links-compact {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-social .social-link-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-social .social-link-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.footer-social .social-link-compact i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Colores específicos para cada red social */
.footer-social .social-link-compact.gmail::before {
    background: linear-gradient(135deg, #ea4335, #d93025);
}

.footer-social .social-link-compact.linkedin::before {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.footer-social .social-link-compact.github::before {
    background: linear-gradient(135deg, #333, #000);
}

.footer-social .social-link-compact.instagram::before {
    background: linear-gradient(135deg, #e4405f, #c13584, #833ab4);
}

.footer-social .social-link-compact.spotify::before {
    background: linear-gradient(135deg, #1db954, #1ed760);
}

.footer-social .social-link-compact.twitter::before {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

/* Efectos hover */
.footer-social .social-link-compact:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-social .social-link-compact:hover::before {
    opacity: 1;
}

.footer-social .social-link-compact:hover i {
    color: white;
    transform: scale(1.1);
}

.footer-social .social-link-compact.gmail:hover {
    box-shadow: 0 15px 35px rgba(234, 67, 53, 0.4);
}

.footer-social .social-link-compact.linkedin:hover {
    box-shadow: 0 15px 35px rgba(0, 119, 181, 0.4);
}

.footer-social .social-link-compact.github:hover {
    box-shadow: 0 15px 35px rgba(51, 51, 51, 0.4);
}

.footer-social .social-link-compact.instagram:hover {
    box-shadow: 0 15px 35px rgba(228, 64, 95, 0.4);
}

.footer-social .social-link-compact.spotify:hover {
    box-shadow: 0 15px 35px rgba(29, 185, 84, 0.4);
}

.footer-social .social-link-compact.twitter:hover {
    box-shadow: 0 15px 35px rgba(29, 161, 242, 0.4);
}

/* Modo oscuro */
[data-theme="dark"] .footer-social .social-link-compact {
    background: var(--bg-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 40px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.footer-made {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.heart {
    color: #e74c3c;
    animation: heartbeat 2s ease-in-out infinite;
}

.coffee {
    color: #8b4513;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive para Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-links a:hover {
        padding-left: 0;
        transform: none;
    }
    
    .footer-social .social-links-compact {
        justify-content: center;
        gap: 12px;
    }
    
    .footer-social .social-link-compact {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    .footer-social .social-link-compact {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* Responsive para el gráfico donut */
@media (max-width: 768px) {
    .donut-chart-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .donut-chart {
        width: 200px;
        height: 200px;
    }
    
    .donut-center {
        width: 140px;
        height: 140px;
    }
    
    .donut-title {
        font-size: 1.2rem;
    }
    
    .donut-subtitle {
        font-size: 0.9rem;
    }
    
    .chart-legend {
        width: 100%;
        min-width: unset;
    }
    
    .legend-item {
        padding: 0.6rem 0.8rem;
    }
    
    .legend-item span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .donut-chart {
        width: 180px;
        height: 180px;
    }
    
    .donut-center {
        width: 120px;
        height: 120px;
    }
    
    .donut-title {
        font-size: 1.1rem;
    }
    
    .donut-subtitle {
        font-size: 0.85rem;
    }
    
    .genres-chart-section {
        padding: 1.5rem;
    }
}

/* ESTILOS PARA LA SECCIÓN DE HOBBIES/AFICIONES */
.hobby-section {
    background: rgba(255, 255, 255, 0.623);
    padding: 3rem 2rem;
    margin: 2.5rem 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hobby-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.hobby-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hobby-title {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.hobby-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.hobby-description {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* WRAPPER PARA GÉNEROS Y SPOTIFY */
.music-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    align-items: start;
}

/* GÉNEROS MUSICALES CON COLORES VIBRANTES */
.music-genres-section {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.genres-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.genre-tag {
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.genre-tag::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: left 0.6s ease;
}

.genre-tag:hover::before {
    left: 100%;
}

.genre-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Colores específicos para cada género */
.genre-tag:nth-child(1) { /* Hip-Hop/Rap */
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.genre-tag:nth-child(2) { /* Urbano Latino */
    background: linear-gradient(45deg, #1db954, #1ed760);
}

.genre-tag:nth-child(3) { /* Pop */
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.genre-tag:nth-child(4) { /* Latin */
    background: linear-gradient(45deg, #f39c12, #d35400);
}

.genre-tag:nth-child(5) { /* Trap Latino */
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.genre-tag:nth-child(6) { /* Flamenco Urbano */
    background: linear-gradient(45deg, #e67e22, #d35400);
}

.genre-tag:nth-child(7) { /* Reggaeton */
    background: linear-gradient(45deg, #16a085, #27ae60);
}

.genre-tag:nth-child(8) { /* R&B */
    background: linear-gradient(45deg, #34495e, #2c3e50);
}

.genre-tag:nth-child(9) { /* Alternative Hip-Hop */
    background: linear-gradient(45deg, #8e44ad, #9b59b6);
}

.genre-tag.large {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.genre-tag.medium {
    font-size: 1rem;
    padding: 0.7rem 1.3rem;
}

.genre-tag.small {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* ARTISTAS FAVORITOS CON MEJOR DISEÑO */
.top-items-section {
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.artist-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.artist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.artist-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Colores específicos para cada artista */
.artist-card:nth-child(1) .artist-avatar { /* Rels B */
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.artist-card:nth-child(2) .artist-avatar { /* Melendi */
    background: linear-gradient(45deg, #1db954, #1ed760);
}

.artist-card:nth-child(3) .artist-avatar { /* C. Tangana */
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.artist-card:nth-child(4) .artist-avatar { /* Extremoduro */
    background: linear-gradient(45deg, #f39c12, #d35400);
}

.artist-card:nth-child(5) .artist-avatar { /* Kaze */
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.artist-card:nth-child(6) .artist-avatar { /* Bad Bunny */
    background: linear-gradient(45deg, #e67e22, #d35400);
}

.artist-name {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.3rem 0;
}

.artist-meta {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.artist-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: var(--width, 0%);
    transition: width 1s ease-in-out;
}

/* Barras de progreso con colores específicos */
.artist-card:nth-child(1) .artist-bar {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.artist-card:nth-child(2) .artist-bar {
    background: linear-gradient(90deg, #1db954, #1ed760);
}

.artist-card:nth-child(3) .artist-bar {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.artist-card:nth-child(4) .artist-bar {
    background: linear-gradient(90deg, #f39c12, #d35400);
}

.artist-card:nth-child(5) .artist-bar {
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
}

.artist-card:nth-child(6) .artist-bar {
    background: linear-gradient(90deg, #e67e22, #d35400);
}

/* ESTILOS PARA LA GALERÍA DE FOTOGRAFÍA */
.photo-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 10px;
}

.photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 200px;
    background-size: cover;
    background-position: center;
}

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

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover::after {
    opacity: 1;
}

/* CLASES DE TAMAÑO PARA LA GALERÍA DE FOTOS */
.photo-item.wide {
    grid-column: span 2;
}

.photo-item.tall {
    grid-row: span 2;
    height: 420px;
}

.photo-item.big {
    grid-column: span 2;
    grid-row: span 2;
    height: 420px;
}

/* Ajustes responsive para las clases de tamaño */
@media (max-width: 768px) {
    .photo-mosaic {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .photo-item {
        height: 150px;
    }
    
    .photo-item.wide,
    .photo-item.big {
        grid-column: span 1;
    }
    
    .photo-item.tall,
    .photo-item.big {
        grid-row: span 1;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .photo-mosaic {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .photo-item {
        height: 120px;
    }
    
    .photo-item.wide,
    .photo-item.tall,
    .photo-item.big {
        grid-column: span 1;
        grid-row: span 1;
        height: 120px;
    }
}

/* ESTADÍSTICAS MUSICALES CON COLORES DISTINTIVOS */
.music-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    padding: 1.8rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid;
    min-height: 120px;
}

/* Colores distintivos para cada estadística */
.stat-card:nth-child(1) {
    border-left-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.stat-card:nth-child(2) {
    border-left-color: #1db954;
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.05), rgba(30, 215, 96, 0.05));
}

.stat-card:nth-child(3) {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(192, 57, 43, 0.05));
}

.stat-card:nth-child(4) {
    border-left-color: #f39c12;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.05), rgba(211, 84, 0, 0.05));
}

.stat-card:nth-child(5) {
    border-left-color: #9b59b6;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.05), rgba(142, 68, 173, 0.05));
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2.2rem;
    min-width: 60px;
    max-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    flex-shrink: 0;
}

/* Iconos con colores específicos */
.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #1db954, #1ed760);
    color: white;
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #f39c12, #d35400);
    color: white;
}

.stat-card:nth-child(5) .stat-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.stat-content {
    flex: 1;
    position: relative;
    z-index: 1;
    min-width: 0; /* Permite que el contenido se contraiga */
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.1;
    margin-bottom: 0.4rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.stat-comparison {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    line-height: 1.2;
}

.stat-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: var(--progress, 0%);
    transition: width 1s ease-in-out;
}

/* Barras de progreso con colores específicos */
.stat-card:nth-child(1) .stat-progress {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-card:nth-child(2) .stat-progress {
    background: linear-gradient(90deg, #1db954, #1ed760);
}

.stat-card:nth-child(3) .stat-progress {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.stat-card:nth-child(4) .stat-progress {
    background: linear-gradient(90deg, #f39c12, #d35400);
}

.stat-card:nth-child(5) .stat-progress {
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
}

/* RESPONSIVE MEJORADO PARA ESTADÍSTICAS MUSICALES */
@media (max-width: 768px) {
    .music-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        gap: 1rem;
        min-height: 100px;
    }
    
    .stat-icon {
        font-size: 1.8rem;
        min-width: 50px;
        max-width: 50px;
        height: 50px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .stat-comparison {
        font-size: 0.75rem;
    }
}

/* ESTILOS ESPECÍFICOS PARA SPOTIFY PROFILE CARD */
.spotify-profile-card {
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.05), rgba(30, 215, 96, 0.05));
    border-left-color: #1db954;
}

.spotify-profile-card .stat-icon {
    background: linear-gradient(135deg, #1db954, #1ed760);
    color: white;
    overflow: hidden;
}

.spotify-profile-card .stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.spotify-profile-card .stat-progress {
    background: linear-gradient(90deg, #1db954, #1ed760);
}

.spotify-profile-card .stat-number {
    color: #1db954;
    font-weight: 700;
}

.spotify-profile-card .stat-label {
    color: #0d7a3f;
    font-weight: 600;
}

.spotify-profile-card .stat-comparison {
    color: #1db954;
    font-weight: 500;
}

.spotify-profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(29, 185, 84, 0.2);
}

@media (max-width: 480px) {
    .stat-card {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        min-height: auto;
    }
    
    .stat-icon {
        font-size: 1.6rem;
        min-width: 45px;
        max-width: 45px;
        height: 45px;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-content {
        min-width: 100%;
    }
}

/* RESPONSIVE MEJORADO PARA ARTISTAS */
@media (max-width: 768px) {
    .artists-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .artist-card {
        padding: 1.2rem;
    }
    
    .artist-avatar {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .artist-name {
        font-size: 1rem;
    }
    
    .artist-meta {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .artist-card {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .artist-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* SECCIÓN SOCIAL ESPECTACULAR COMPLETA */
.social-section {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
}

.social-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-10px); }
    50% { transform: translateX(10px) translateY(10px); }
    75% { transform: translateX(-5px) translateY(5px); }
}

.social-section .container {
    position: relative;
    z-index: 2;
}

.social-hero {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.social-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a8edea 50%, #fed6e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px rgba(168, 237, 234, 0.5); }
    100% { text-shadow: 0 0 40px rgba(254, 214, 227, 0.8), 0 0 60px rgba(168, 237, 234, 0.5); }
}

.social-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.5s both;
}

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

.social-stars {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
}

.social-stars::before,
.social-stars::after {
    content: '✨';
    position: absolute;
    font-size: 2rem;
    animation: twinkle 2s ease-in-out infinite;
}

.social-stars::before {
    top: 0;
    left: 20px;
    animation-delay: 0s;
}

.social-stars::after {
    top: 20px;
    right: 20px;
    animation-delay: 1s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.social-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    color: white;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    transform: translateY(0);
    animation: cardSlideIn 0.8s ease forwards;
    opacity: 0;
}

.social-card:nth-child(1) { animation-delay: 0.1s; }
.social-card:nth-child(2) { animation-delay: 0.2s; }
.social-card:nth-child(3) { animation-delay: 0.3s; }
.social-card:nth-child(4) { animation-delay: 0.4s; }
.social-card:nth-child(5) { animation-delay: 0.5s; }
.social-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.social-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 20px;
}

.social-card:hover .social-card-bg {
    opacity: 1;
}

.social-card-content {
    position: relative;
    z-index: 2;
}

.social-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.social-card-description {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 15px;
    line-height: 1.5;
}

.social-card-stats {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 600;
}

.social-card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.social-card:hover .social-card-glow {
    opacity: 1;
}

/* Estilos específicos para cada red social */
.gmail-card .social-card-icon {
    background: linear-gradient(135deg, #ea4335 0%, #d93025 100%);
    color: white;
}

.gmail-card .social-card-bg {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.1), rgba(217, 48, 37, 0.1));
}

.gmail-card .social-card-glow {
    background: linear-gradient(135deg, #ea4335, #d93025);
    filter: blur(20px);
}

.linkedin-card .social-card-icon {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    color: white;
}

.linkedin-card .social-card-bg {
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.1), rgba(0, 88, 133, 0.1));
}

.linkedin-card .social-card-glow {
    background: linear-gradient(135deg, #0077b5, #005885);
    filter: blur(20px);
}

.github-card .social-card-icon {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    color: white;
}

.github-card .social-card-bg {
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.1), rgba(0, 0, 0, 0.1));
}

.github-card .social-card-glow {
    background: linear-gradient(135deg, #333, #000);
    filter: blur(20px);
}

.instagram-card .social-card-icon {
    background: linear-gradient(135deg, #e4405f 0%, #c13584 50%, #833ab4 100%);
    color: white;
}

.instagram-card .social-card-bg {
    background: linear-gradient(135deg, rgba(228, 64, 95, 0.1), rgba(131, 58, 180, 0.1));
}

.instagram-card .social-card-glow {
    background: linear-gradient(135deg, #e4405f, #c13584, #833ab4);
    filter: blur(20px);
}

.spotify-card .social-card-icon {
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    color: white;
}

.spotify-card .social-card-bg {
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.1), rgba(30, 215, 96, 0.1));
}

.spotify-card .social-card-glow {
    background: linear-gradient(135deg, #1db954, #1ed760);
    filter: blur(20px);
}

.twitter-card .social-card-icon {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
}

.twitter-card .social-card-bg {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(51, 51, 51, 0.1));
}

.twitter-card .social-card-glow {
    background: linear-gradient(135deg, #000000, #333333);
    filter: blur(20px);
}

/* Efectos hover */
.social-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}

.social-card:hover .social-card-icon {
    transform: rotateY(180deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.social-card:hover .social-card-title {
    transform: translateX(10px);
    color: #fff;
}

/* SECCIÓN SPOTIFY EMBED CON FONDO BLANCO */
.spotify-section {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

[data-theme="dark"] .spotify-section {
    background: #ffffff;
    color: #333;
}

[data-theme="dark"] .spotify-section .section-subtitle {
    color: #333;
}

.spotify-embed-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
}

.spotify-embed-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1DB954, #1ed760, #1DB954);
    z-index: 1;
}

.spotify-embed-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spotify-embed-container iframe {
    border-radius: 8px;
    filter: contrast(1.1) saturate(1.1);
    transition: var(--transition);
}

.spotify-embed-container:hover iframe {
    filter: contrast(1.2) saturate(1.2);
}

/* Responsive para el layout */
@media (max-width: 1024px) {
    .music-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .music-content-wrapper {
        gap: 1.5rem;
    }
    
    .spotify-embed-container {
        padding: 0.8rem;
    }
    
    .spotify-embed-container iframe {
        height: 320px !important;
    }
    
    .music-genres-section,
    .spotify-section {
        padding: 1.5rem;
    }
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    .section {
        background-attachment: scroll;
    }
}

/* Optimización para dispositivos con baja potencia */
@media (prefers-reduced-motion: reduce) {
    .section {
        background-attachment: scroll;
    }
}

/* ANIMACIONES DE PARTÍCULAS */
.social-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
    opacity: 0;
}

/* Diferentes tamaños y velocidades para las partículas */
.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
    width: 5px;
    height: 5px;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 22s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 6s;
    animation-duration: 16s;
    width: 4px;
    height: 4px;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 8s;
    animation-duration: 24s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 10s;
    animation-duration: 19s;
    width: 5px;
    height: 5px;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 12s;
    animation-duration: 21s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 14s;
    animation-duration: 17s;
    width: 4px;
    height: 4px;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: 16s;
    animation-duration: 23s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(10) {
    left: 15%;
    animation-delay: 18s;
    animation-duration: 20s;
    width: 6px;
    height: 6px;
}

.particle:nth-child(11) {
    left: 25%;
    animation-delay: 20s;
    animation-duration: 18s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(12) {
    left: 35%;
    animation-delay: 22s;
    animation-duration: 25s;
    width: 4px;
    height: 4px;
}

.particle:nth-child(13) {
    left: 45%;
    animation-delay: 1s;
    animation-duration: 19s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(14) {
    left: 55%;
    animation-delay: 3s;
    animation-duration: 21s;
    width: 5px;
    height: 5px;
}

.particle:nth-child(15) {
    left: 65%;
    animation-delay: 5s;
    animation-duration: 17s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(16) {
    left: 75%;
    animation-delay: 7s;
    animation-duration: 23s;
    width: 4px;
    height: 4px;
}

.particle:nth-child(17) {
    left: 85%;
    animation-delay: 9s;
    animation-duration: 18s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(18) {
    left: 95%;
    animation-delay: 11s;
    animation-duration: 22s;
    width: 5px;
    height: 5px;
}

.particle:nth-child(19) {
    left: 5%;
    animation-delay: 13s;
    animation-duration: 20s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(20) {
    left: 77%;
    animation-delay: 15s;
    animation-duration: 24s;
    width: 4px;
    height: 4px;
}

.particle:nth-child(21) {
    left: 33%;
    animation-delay: 17s;
    animation-duration: 16s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(22) {
    left: 88%;
    animation-delay: 19s;
    animation-duration: 21s;
    width: 6px;
    height: 6px;
}

.particle:nth-child(23) {
    left: 12%;
    animation-delay: 21s;
    animation-duration: 18s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(24) {
    left: 67%;
    animation-delay: 23s;
    animation-duration: 25s;
    width: 4px;
    height: 4px;
}

/* Keyframes para la animación de partículas */
@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Variaciones de movimiento más complejas */
.particle:nth-child(odd) {
    animation-name: floatParticleLeft;
}

.particle:nth-child(even) {
    animation-name: floatParticleRight;
}

@keyframes floatParticleLeft {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateY(75vh) translateX(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(10px) rotate(180deg);
    }
    75% {
        transform: translateY(25vh) translateX(-15px) rotate(270deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatParticleRight {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateY(75vh) translateX(20px) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(25vh) translateX(15px) rotate(270deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(-50px) rotate(360deg);
        opacity: 0;
    }
}

/* Partículas para modo oscuro */
[data-theme="dark"] .particle {
    background: rgba(255, 255, 255, 0.4);
}

/* Partículas negras para secciones con fondo claro */
.bg-light .particle {
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .bg-light .particle {
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Partículas especiales para el hero */
#hero .particle {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Partículas más grandes para el hero */
#hero .particle:nth-child(3n) {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

#hero .particle:nth-child(5n) {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

/* Animación especial para partículas del hero */
#hero .particle:nth-child(4n) {
    animation-name: floatParticleHero;
}

@keyframes floatParticleHero {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateY(75vh) translateX(-30px) rotate(90deg) scale(1.2);
    }
    50% {
        transform: translateY(50vh) translateX(15px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translateY(25vh) translateX(-20px) rotate(270deg) scale(1.1);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) translateX(40px) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}