/* ===== VARIABLES CSS ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #3d566e 100%);
    --accent-gradient: linear-gradient(45deg, #3498db, #2980b9);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(52, 152, 219, 0.1);
    --hover-border: rgba(52, 152, 219, 0.3);
    --text-primary: white;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.8);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.3);
    --accent-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
    --transition: all 0.3s ease;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== ANIMACIONES ===== */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 1; 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.8; 
    }
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

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

/* ===== PARTÍCULAS DE FONDO ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

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

/* ===== LAYOUT PRINCIPAL ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 60px;
}

.main-content {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== SECCIONES ===== */
.profile-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.profile-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

/* ===== AVATAR Y PERFIL ===== */
.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--accent-gradient);
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--text-primary);
    font-weight: bold;
    box-shadow: var(--accent-shadow);
    animation: pulse 2s ease-in-out infinite alternate;
    transition: var(--transition);
}

.avatar:hover {
    transform: scale(1.1);
}

.name {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 300;
}

/* ===== GRID DE HABILIDADES ===== */
.skills-section {
    margin-bottom: 60px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.skill-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    background: var(--hover-bg);
    border: 1px solid var(--hover-border);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.skill-description {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* ===== SECCIÓN CTA ===== */
.cta-section {
    text-align: center;
    margin-top: 60px;
}

.cta-title {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 600;
}

.cta-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ===== BOTONES ===== */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn::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.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

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

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

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: #2c3e50;
}

/* ===== STACK TECNOLÓGICO ===== */
.tech-stack {
    margin-top: 50px;
    text-align: center;
}

.tech-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tech-item {
    background: var(--glass-bg);
    padding: 12px 20px;
    border-radius: 25px;
    color: var(--text-primary);
    font-weight: 500;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    font-size: 0.9rem;
    white-space: nowrap;
}

.tech-item:hover {
    background: var(--hover-bg);
    border: 1px solid var(--hover-border);
    transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding-top: 40px;
    }
    
    .name {
        font-size: 2.2rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tech-icons {
        gap: 10px;
    }
    
    .tech-item {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .profile-section {
        padding: 30px 20px;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
        font-size: 48px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.8rem;
    }
    
    .title {
        font-size: 1rem;
    }
    
    .skill-card {
        padding: 25px 20px;
    }
    
    .tech-icons {
        gap: 8px;
    }
    
    .tech-item {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}
