/* ===== VARIABLES Y RESET ===== */
:root {
    --primary-color: #00ff88;
    --secondary-color: #0080ff;
    --accent-color: #ff0080;
    --background-dark: #0f0f0f;
    --background-medium: #1a1a2e;
    --background-light: #16213e;
    --text-primary: #00ff88;
    --text-secondary: #80ffdb;
    --text-muted: #6080a0;
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Courier New', 'IBM Plex Mono', monospace;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-medium) 50%, var(--background-light) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== BACKGROUND MATRIX ===== */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 95%, rgba(0, 255, 136, 0.03) 100%),
        linear-gradient(transparent 95%, rgba(0, 255, 136, 0.03) 100%);
    background-size: 50px 50px;
    z-index: -1;
    animation: matrix 20s linear infinite;
}

@keyframes matrix {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

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

/* ===== HEADER ===== */
.header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 40px;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    background: #3b4f59;
    width: 150px;
    height: 150px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    object-fit: cover;
}

.name {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

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

/* ===== MÉTRICAS ===== */
.leadership-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 128, 0.3);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.metric-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== PROYECTOS ===== */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin: 60px 0 40px 0;
    font-weight: 600;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

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

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-link {
    display: inline-block;
    background: rgba(0, 128, 255, 0.2);
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(0, 128, 255, 0.3);
    transition: var(--transition);
    font-size: 0.9rem;
    margin: 5px 5px 5px 0;
}

.project-link:hover {
    background: rgba(0, 128, 255, 0.4);
    transform: translateY(-2px);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tech-tag {
    background: rgba(0, 128, 255, 0.2);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 128, 255, 0.3);
}

/* ===== TECNOLOGÍAS ===== */
.technologies-section {
    padding: 60px 20px;
    text-align: center;
}

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

.tech-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--border-radius);
    padding: 25px;
    backdrop-filter: blur(10px);
}

.tech-category h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tech-item {
    background: rgba(0, 128, 255, 0.2);
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 128, 255, 0.3);
    font-size: 0.9rem;
    transition: var(--transition);
}

.tech-item:hover {
    background: rgba(0, 128, 255, 0.4);
    transform: translateY(-2px);
}

/* ===== CONTACTO ===== */
.contact-section {
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
    border-top: 2px solid var(--secondary-color);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.contact-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 128, 0.3);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-secondary);
}

.contact-method:hover {
    background: rgba(255, 0, 128, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.5rem;
}

.info-message {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.more-info {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 0, 128, 0.2);
}

.more-info a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
}

.more-info a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* ===== UTILIDADES ===== */
.glow {
    text-shadow: 0 0 10px currentColor;
}

.leadership-highlight {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .name {
        font-size: 2.2rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-method {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .tech-categories {
        grid-template-columns: 1fr;
    }

    .leadership-metrics {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
