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

:root {
    --primary-purple: #581c87;
    --secondary-purple: #7c3aed;
    --accent-purple: #a855f7;
    --light-purple: #c084fc;
    --dark-purple: #4c1d95;
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --gradient-primary: linear-gradient(135deg, #581c87 0%, #7c3aed 50%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    --shadow-primary: 0 20px 40px rgba(88, 28, 135, 0.3);
    --shadow-secondary: 0 10px 30px rgba(124, 58, 237, 0.2);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Fondo animado */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(88, 28, 135, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: -2;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

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

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.particle:nth-child(3) { top: 80%; left: 40%; animation-delay: 2s; }
.particle:nth-child(4) { top: 40%; left: 60%; animation-delay: 3s; }
.particle:nth-child(5) { top: 10%; left: 70%; animation-delay: 4s; }
.particle:nth-child(6) { top: 70%; left: 10%; animation-delay: 5s; }
.particle:nth-child(7) { top: 30%; left: 90%; animation-delay: 1.5s; }
.particle:nth-child(8) { top: 90%; left: 30%; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.7; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

/* Contenedor principal */
.container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Sección hero */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out;
}

.profile-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.profile-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.6;
    animation: pulse 3s ease-in-out infinite;
}

.profile-image-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.profile-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: var(--gradient-primary);
    background-clip: padding-box;
    animation: rotate 10s linear infinite;
}

.profile-pulse {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
}

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

/* Contenido hero */
.hero-content {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-subtitle i {
    color: var(--accent-purple);
    margin-right: 8px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(88, 28, 135, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--light-purple);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.badge:hover {
    background: rgba(88, 28, 135, 0.4);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.badge i {
    margin-right: 6px;
}

/* Sección de enlaces */
.links-section {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.links-grid {
    display: grid;
    gap: 20px;
}

.link-card {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    transform-origin: center;
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }

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

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(88, 28, 135, 0.85) 0%, 
        rgba(124, 58, 237, 0.75) 50%, 
        rgba(168, 85, 247, 0.65) 100%);
    transition: var(--transition);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 100px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card-arrow {
    margin-left: auto;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    z-index: 0;
    opacity: 0;
    transition: var(--transition);
    filter: blur(8px);
}

/* Efectos hover */
.link-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-primary);
}

.link-card:hover .card-glow {
    opacity: 0.6;
}

.link-card:hover .bg-image {
    transform: scale(1.1);
}

.link-card:hover .card-overlay {
    background: linear-gradient(135deg, 
        rgba(88, 28, 135, 0.9) 0%, 
        rgba(124, 58, 237, 0.8) 50%, 
        rgba(168, 85, 247, 0.7) 100%);
}

.link-card:hover .card-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.link-card:hover .card-arrow {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

/* Tarjeta destacada */
.link-card.featured {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 2px solid rgba(168, 85, 247, 0.3);
}

.link-card.featured .card-glow {
    opacity: 0.3;
}

/* Footer */
.footer {
    margin-top: 60px;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.footer-content {
    padding: 30px 0;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-text i {
    color: var(--accent-purple);
    margin-right: 8px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(88, 28, 135, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-purple);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(88, 28, 135, 0.4);
    border-color: var(--accent-purple);
    transform: translateY(-3px);
    color: white;
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .profile-image-container,
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .card-content {
        padding: 20px;
        min-height: 90px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .hero-badges {
        gap: 8px;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .profile-image-container,
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .card-content {
        padding: 18px;
        gap: 15px;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-subtitle {
        font-size: 0.9rem;
    }
}

/* Efectos de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particles-container {
        display: none;
    }
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --bg-primary: #000000;
    }
    
    .card-overlay {
        background: rgba(0, 0, 0, 0.8) !important;
    }
}

