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

body {
    font-family: 'Inter', sans-serif;
    background: #0d0d0d;
    color: #e5e5e5;
    overflow-x: hidden;
    cursor: none;
}

/* Cursor personalizado */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #8b5cf6;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

.cursor.active {
    transform: scale(2);
    border-color: #00FFD1;
}

/* Pantalla de boot */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0d0d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s ease;
}

.boot-text {
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    color: #8b5cf6;
    margin-bottom: 20px;
    opacity: 0;
    animation: typewriter 2s steps(40) forwards;
}

@keyframes typewriter {
    from { width: 0; opacity: 1; }
    to { width: 100%; opacity: 1; }
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: #1f2937;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #00FFD1);
    width: 0%;
    animation: loading 3s ease-in-out forwards;
}

@keyframes loading {
    to { width: 100%; }
}

/* Interfaz principal */
.main-interface {
    opacity: 0;
    position: relative;
    min-height: 100vh;
}

.main-interface.active {
    opacity: 1;
    transition: opacity 1s ease;
}

/* 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: 2px;
    height: 2px;
    background: #8b5cf6;
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Sistema de navegación por nodos */
.node-system {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: 80vw;
    height: 80vh;
    max-width: 1200px;
    max-height: 800px;
}

.central-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #8b5cf6, #6d28d9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.central-node:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.8);
}

.central-node h1 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    text-align: center;
    color: white;
    font-weight: 700;
}

.satellite-node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(139, 92, 246, 0.2);
    border: 2px solid #8b5cf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.satellite-node:hover {
    background: rgba(139, 92, 246, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.satellite-node span {
    font-size: 12px;
    text-align: center;
    color: #e5e5e5;
    font-weight: 500;
}

/* Posicionamiento de nodos satélite */
.node-1 { top: 10%; left: 50%; transform: translate(-50%, -50%); }
.node-2 { top: 25%; right: 15%; transform: translate(50%, -50%); }
.node-3 { bottom: 25%; right: 15%; transform: translate(50%, 50%); }
.node-4 { bottom: 10%; left: 50%; transform: translate(-50%, 50%); }
.node-5 { bottom: 25%; left: 15%; transform: translate(-50%, 50%); }
.node-6 { top: 25%; left: 15%; transform: translate(-50%, -50%); }

/* Líneas conectoras */
.connector {
    position: absolute;
    background: linear-gradient(45deg, transparent, #8b5cf6, transparent);
    height: 1px;
    opacity: 0.3;
    transform-origin: left center;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Panel de contenido */
.content-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vh;
    max-width: 1000px;
    max-height: 700px;
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid #8b5cf6;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    padding: 40px;
    overflow-y: auto;
}

.content-panel.active {
    display: block;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    color: #8b5cf6;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #00FFD1;
    transform: rotate(90deg);
}

.content-header {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #8b5cf6;
    margin-bottom: 20px;
    text-align: center;
}

.content-body {
    font-size: 16px;
    line-height: 1.6;
    color: #e5e5e5;
}

/* Estilos para contenido del panel */
.profile-container {
    display: grid;
    gap: 30px;
}

.profile-description {
    font-size: 18px;
    line-height: 1.8;
    color: #e5e5e5;
    margin-bottom: 30px;
}

.profile-skills h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #8b5cf6;
    margin-bottom: 20px;
}

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

.skill-item {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid #8b5cf6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

/* Estilos para proyectos */
.projects-container {
    display: grid;
    gap: 30px;
}

.project-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.project-card:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #8b5cf6;
}

.project-date {
    font-size: 14px;
    color: #a3a3a3;
    background: rgba(139, 92, 246, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
}

.project-description {
    font-size: 16px;
    line-height: 1.6;
    color: #e5e5e5;
    margin-bottom: 20px;
}

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

.tech-tag {
    background: rgba(0, 255, 209, 0.1);
    color: #00FFD1;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 209, 0.3);
}

/* Estilos para skills */
.skills-container {
    display: grid;
    gap: 40px;
}

.tech-section h3, .languages-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #8b5cf6;
    margin-bottom: 20px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.tech-card {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-card:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.tech-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.tech-card span {
    font-size: 14px;
    font-weight: 500;
    color: #e5e5e5;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
}

.language-name {
    font-weight: 500;
    color: #e5e5e5;
}

.language-level {
    color: #00FFD1;
    font-size: 14px;
}

/* Estilos para contacto */
.contact-container {
    display: grid;
    gap: 30px;
}

.contact-intro {
    text-align: center;
    padding: 20px;
}

.contact-intro p {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-philosophy {
    font-style: italic;
    color: #a3a3a3;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 30px;
    width: 50px;
    text-align: center;
}

.contact-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #8b5cf6;
    margin-bottom: 5px;
}

.contact-link {
    color: #00FFD1;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
}

.contact-footer em {
    color: #8b5cf6;
    font-size: 16px;
}

/* Estilos para timeline */
.timeline-container {
    display: grid;
    gap: 30px;
}

.timeline-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.timeline-date {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #8b5cf6;
    margin-bottom: 5px;
}

.timeline-institution {
    color: #00FFD1;
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-description {
    color: #a3a3a3;
    line-height: 1.6;
}

.experience-note {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.experience-note p {
    margin-bottom: 10px;
}

.experience-note strong {
    color: #8b5cf6;
}

/* Responsive */
@media (max-width: 768px) {
    .node-system {
        width: 95vw;
        height: 70vh;
    }
    
    .central-node {
        width: 100px;
        height: 100px;
    }
    
    .satellite-node {
        width: 60px;
        height: 60px;
    }
    
    .terminal {
        width: 300px;
        height: 150px;
        font-size: 10px;
    }
    
    .content-panel {
        width: 95vw;
        height: 85vh;
        padding: 20px;
    }
}