/* Reset y Variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores industriales-tecnológicos */
    --primary-blue: #00a8ff;
    --secondary-blue: #192a56;
    --accent-orange: #ff6b35;
    --success-green: #2ed573;
    --warning-yellow: #ffa502;
    --error-red: #ff3742;
    --dark-bg: #0a0e27;
    --card-bg: #1e2749;
    --panel-bg: rgba(30, 39, 73, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #8892b0;
    --text-accent: #64ffda;
    --border-color: #233554;
    --glow-color: #00a8ff;
    
    /* Tipografía técnica */
    --font-tech: 'Orbitron', monospace;
    --font-modern: 'Space Grotesk', sans-serif;
    
    /* Efectos y transiciones */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.4s ease-in-out;
    --transition-slow: 0.8s ease-in-out;
    --shadow-glow: 0 0 20px rgba(0, 168, 255, 0.3);
    --shadow-panel: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Estilos base */
body {
    font-family: var(--font-modern);
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity var(--transition-slow);
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

#neural-network {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.loader-text {
    font-family: var(--font-tech);
    font-size: 1.4rem;
    color: var(--text-accent);
    margin-top: 30px;
    letter-spacing: 4px;
    animation: textPulse 2s infinite, textGlow 3s infinite alternate;
    position: relative;
    z-index: 10;
    text-shadow: 0 0 20px currentColor;
    font-weight: bold;
}

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

@keyframes textGlow {
    0% { text-shadow: 0 0 20px currentColor, 0 0 30px currentColor; }
    100% { text-shadow: 0 0 30px currentColor, 0 0 50px currentColor, 0 0 70px currentColor; }
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--text-accent));
    width: 0%;
    animation: loading 3s ease-in-out;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Neural Network Background for Loading */
.neural-network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.neural-layer {
    position: absolute;
}

/* Input Layer (Left - Yellow) - Distribuidas por toda la pantalla */
.neural-layer.layer-input {
    left: 8%;
    top: 0;
    width: 100%;
    height: 100%;
}

.neural-layer.layer-input .neuron:nth-child(1) { position: absolute; top: 15%; left: 4%; }
.neural-layer.layer-input .neuron:nth-child(2) { position: absolute; top: 45%; left: 4%; }
.neural-layer.layer-input .neuron:nth-child(3) { position: absolute; top: 75%; left: 4%; }

/* Hidden Layer (Center - Blue) - Distribuidas verticalmente */
.neural-layer.layer-hidden {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.neural-layer.layer-hidden .neuron:nth-child(1) { position: absolute; top: 10%; left: 48%; }
.neural-layer.layer-hidden .neuron:nth-child(2) { position: absolute; top: 20%; left: 48%; }
.neural-layer.layer-hidden .neuron:nth-child(3) { position: absolute; top: 60%; left: 48%; }
.neural-layer.layer-hidden .neuron:nth-child(4) { position: absolute; top: 80%; left: 48%; }

/* Output Layer (Right - Pink) - Distribuidas verticalmente */
.neural-layer.layer-output {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.neural-layer.layer-output .neuron:nth-child(1) { position: absolute; top: 30%; left: 84%; }
.neural-layer.layer-output .neuron:nth-child(2) { position: absolute; top: 60%; left: 84%; }

.neural-network-bg .neuron {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    opacity: 0;
    transform: scale(0.1);
    animation: neuronActivate 1s ease-out forwards,
               neuronPulse 3s ease-in-out infinite;
    animation-delay: var(--delay, 0s), calc(var(--delay, 0s) + 1s);
}

/* Neuron colors based on layer */
.input-neuron {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.hidden-neuron {
    background: linear-gradient(135deg, #87CEEB, #4169E1);
    border-color: #87CEEB;
    box-shadow: 0 0 20px rgba(135, 206, 235, 0.6);
}

.output-neuron {
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    border-color: #FFB6C1;
    box-shadow: 0 0 20px rgba(255, 182, 193, 0.6);
}

.neural-network-bg .neuron::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    animation: neuronPulse 2s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.neural-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.neural-connections .connection {
    stroke: var(--text-accent);
    stroke-width: 0.5;
    opacity: 0;
    stroke-dasharray: 4;
    stroke-dashoffset: 4;
    filter: drop-shadow(0 0 1px var(--text-accent));
    animation: connectionActivate 1s ease-out forwards, 
               connectionPulse 2s ease-in-out infinite;
    animation-delay: var(--delay, 0s), calc(var(--delay, 0s) + 1s);
}

/* Conexiones estáticas sin animación - para mejor alineación */
.neural-connections .connection-static {
    stroke: var(--text-accent);
    stroke-width: 0.5;
    opacity: 0.4;
    fill: none;
    filter: drop-shadow(0 0 1px var(--text-accent));
}

@keyframes neuronActivate {
    0% {
        opacity: 0;
        transform: scale(0.1);
        box-shadow: 0 0 0 transparent;
    }
    25% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.4);
        box-shadow: 0 0 30px currentColor;
    }
    75% {
        opacity: 0.9;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 20px currentColor;
    }
}

@keyframes neuronPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px currentColor;
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px currentColor;
    }
}

@keyframes connectionActivate {
    0% {
        opacity: 0;
        stroke-dashoffset: 4;
        stroke-width: 0.3;
    }
    30% {
        opacity: 0.4;
        stroke-dashoffset: 2;
        stroke-width: 0.6;
    }
    70% {
        opacity: 0.7;
        stroke-dashoffset: 1;
        stroke-width: 0.8;
    }
    100% {
        opacity: 0.6;
        stroke-dashoffset: 0;
        stroke-width: 0.5;
    }
}

/* Animación adicional para que las conexiones pulsen después de activarse */
@keyframes connectionPulse {
    0%, 100% {
        opacity: 0.6;
        stroke-width: 0.5;
    }
    50% {
        opacity: 0.8;
        stroke-width: 0.7;
        filter: drop-shadow(0 0 2px var(--text-accent));
    }
}

/* Circuit Loader - Enhanced */
.circuit-loader {
    text-align: center;
    position: relative;
    z-index: 10;
    background: rgba(10, 15, 20, 0.8);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
}

/* Navegación */
.nav-panel {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal);
}

.nav-logo {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo-text {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-accent);
    letter-spacing: 2px;
}

.power-indicator {
    width: 12px;
    height: 12px;
    background: var(--success-green);
    border-radius: 50%;
    margin-left: 10px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--success-green);
}

.nav-menu {
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-blue);
    transform: scaleY(0);
    transition: transform var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(0, 168, 255, 0.1);
    color: var(--text-accent);
    transform: translateX(5px);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleY(1);
}

.nav-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.system-status {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.status-label {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--text-secondary);
    width: 50px;
}

.status-bar {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-left: 10px;
}

.status-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-green), var(--warning-yellow), var(--error-red));
    transition: width var(--transition-normal);
}

/* Contenido principal */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    position: relative;
}

.section {
    min-height: 100vh;
    padding: 80px 60px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-slow);
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-tech);
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-accent);
    letter-spacing: 5px;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.terminal-window {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-panel);
}

.terminal-header {
    background: var(--secondary-blue);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: var(--error-red); }
.btn-minimize { background: var(--warning-yellow); }
.btn-maximize { background: var(--success-green); }

.terminal-title {
    font-family: var(--font-tech);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 30px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: 8px;
}

.prompt {
    color: var(--success-green);
}

.command {
    color: var(--text-accent);
    margin-left: 10px;
}

.output {
    color: var(--text-primary);
    margin-left: 10px;
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--text-accent);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.5s step-end infinite;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hologram Visual */
.hologram-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.hologram-ring {
    position: absolute;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.hologram-ring:nth-child(1) {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.3;
}

.hologram-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    opacity: 0.5;
    animation-duration: 8s;
    animation-direction: reverse;
}

.hologram-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    opacity: 0.7;
    animation-duration: 6s;
}

.neural-network {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.neuron {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--text-accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--text-accent);
    animation: pulse 2s infinite;
    animation-delay: var(--delay);
}

.neuron:nth-child(1) { top: 20px; left: 50%; transform: translateX(-50%); }
.neuron:nth-child(2) { top: 50%; left: 20px; transform: translateY(-50%); }
.neuron:nth-child(3) { top: 50%; right: 20px; transform: translateY(-50%); }
.neuron:nth-child(4) { bottom: 20px; left: 50%; transform: translateX(-50%); }

.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    animation: dataFlow 3s linear infinite;
}

.connection:nth-child(5) {
    top: 30px;
    left: 60%;
    width: 60px;
    transform: rotate(45deg);
}

.connection:nth-child(6) {
    top: 50%;
    left: 40px;
    width: 120px;
    transform: translateY(-50%);
}

.connection:nth-child(7) {
    bottom: 30px;
    right: 60%;
    width: 60px;
    transform: rotate(-45deg);
}

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

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

@keyframes dataFlow {
    0% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(0); }
}

.hero-footer {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    gap: 60px;
    padding: 0 20px;
}

.data-stream {
    display: flex;
    flex-direction: row;
    gap: 30px;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    flex: 1;
    justify-content: space-evenly;
}

.stream-item {
    color: var(--text-accent);
    padding: 8px 15px;
    border: 1px solid var(--primary-blue);
    border-radius: 20px;
    background: rgba(0, 168, 255, 0.1);
    animation: pulse 3s infinite;
    white-space: nowrap;
    text-align: center;
    min-width: 200px;
    flex: 0 0 auto;
}

.scroll-indicator {
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    flex-shrink: 0;
    margin-left: 20px;
    min-width: 100px;
}

.scroll-indicator:hover {
    color: var(--text-accent);
    transform: translateY(-5px);
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.profile-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-panel);
    position: sticky;
    top: 100px;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: rotate 5s linear infinite;
}

.avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue), var(--text-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-tech);
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.profile-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(46, 213, 115, 0.2);
    color: var(--success-green);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-tech);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-accent);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.expertise-panel {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.panel-header {
    background: var(--secondary-blue);
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h4 {
    font-family: var(--font-tech);
    color: var(--text-accent);
    letter-spacing: 2px;
}

.expertise-list {
    padding: 30px;
}

.expertise-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(0, 168, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    transition: var(--transition-normal);
}

.expertise-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-glow);
}

.expertise-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.expertise-content h5 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.expertise-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

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

.tech-tags span {
    padding: 4px 12px;
    background: var(--secondary-blue);
    color: var(--text-accent);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Experience Section - Technological Horizon - ORIGINAL */
.experience-section {
    position: relative;
    min-height: 120vh;
    overflow: hidden;
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 0 0 0;
}

/* Information Panel - Original position */
.experience-info-panel {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 60px auto;
    z-index: 5;
}

.tech-horizon {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 3;
    margin-top: auto;
}

.panel-container {
    background: linear-gradient(145deg, 
        rgba(30, 39, 46, 0.95) 0%, 
        rgba(22, 27, 34, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.panel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 168, 255, 0.1) 50%, 
        transparent 100%);
    animation: scanLine 3s infinite;
}

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
}

.panel-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-tech);
    font-size: 0.9rem;
    color: var(--success-green);
    font-weight: 600;
    letter-spacing: 1px;
}

.status-light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-green);
    box-shadow: 0 0 10px var(--success-green);
    animation: pulse 2s infinite;
}

.panel-controls {
    display: flex;
    gap: 10px;
}

.control-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.control-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 168, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.control-button:hover::before,
.control-button.active::before {
    left: 0;
}

.control-button:hover,
.control-button.active {
    background: rgba(0, 168, 255, 0.2);
    border-color: var(--primary-blue);
    color: var(--text-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.2);
}

.button-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.control-button.active .button-icon {
    opacity: 1;
    filter: drop-shadow(0 0 5px currentColor);
}

.panel-content {
    min-height: 250px;
    position: relative;
}

/* Separador visual entre panel y horizonte */
.experience-separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-blue) 20%, 
        var(--primary-blue) 80%, 
        transparent 100%);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.experience-separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 168, 255, 0.8) 50%, 
        transparent 100%);
    animation: separatorFlow 3s infinite;
}

@keyframes separatorFlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.content-display {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-secondary);
    position: relative;
}

.content-display ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-display li {
    padding: 12px 0;
    padding-left: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.content-display li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.content-display li:hover {
    color: var(--text-primary);
    padding-left: 30px;
}

.content-display li:hover::before {
    color: var(--text-accent);
    transform: translateX(5px);
}

.tech-tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.tech-tag-modern {
    background: linear-gradient(135deg, 
        rgba(0, 168, 255, 0.1) 0%, 
        rgba(46, 213, 115, 0.1) 100%);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-tech);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.tech-tag-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 168, 255, 0.2) 0%, 
        rgba(46, 213, 115, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-tag-modern:hover {
    border-color: var(--primary-blue);
    color: var(--text-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.15);
}

.tech-tag-modern:hover::before {
    opacity: 1;
}

.achievement-item-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(46, 213, 115, 0.05) 0%, 
        rgba(0, 168, 255, 0.05) 100%);
    border: 1px solid rgba(46, 213, 115, 0.2);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.achievement-item-modern::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--success-green) 0%, 
        var(--primary-blue) 100%);
}

.achievement-item-modern:hover {
    transform: translateX(8px);
    box-shadow: 0 15px 40px rgba(46, 213, 115, 0.1);
    border-color: var(--success-green);
}

.achievement-icon-modern {
    font-size: 1.8rem;
    color: var(--success-green);
    filter: drop-shadow(0 0 8px rgba(46, 213, 115, 0.3));
}

.achievement-text-modern {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Technological Horizon */
.tech-horizon {
    position: relative; /* Cambio de absolute a relative */
    width: 100%;
    height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 3; /* Z-index más bajo */
    margin-top: auto; /* Empuja hacia abajo */
}

.horizon-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.nav-controls {
    position: absolute;
    top: -100px;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 4;
}

.nav-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, 
        rgba(30, 39, 46, 0.9) 0%, 
        rgba(22, 27, 34, 0.9) 100%);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: all;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.nav-arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, 
        rgba(0, 168, 255, 0.2) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-arrow:hover::before {
    opacity: 1;
}

.nav-arrow:hover {
    border-color: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 
        0 15px 40px rgba(0, 168, 255, 0.2),
        0 0 30px rgba(0, 168, 255, 0.1);
}

.arrow-core {
    position: relative;
    z-index: 2;
}

.arrow-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    opacity: 0;
    animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.4);
    }
}

.nav-arrow svg {
    width: 28px;
    height: 28px;
    color: var(--text-accent);
    transition: color 0.3s ease;
}

.nav-arrow:hover svg {
    color: var(--primary-blue);
    filter: drop-shadow(0 0 8px currentColor);
}

.nav-left {
    margin-left: 50px;
}

.nav-right {
    margin-right: 50px;
}

.semicircle-base {
    position: relative;
    width: 800px;
    height: 400px;
    border-radius: 800px 800px 0 0;
    background: linear-gradient(180deg,
        rgba(0, 168, 255, 0.05) 0%,
        rgba(46, 213, 115, 0.03) 30%,
        rgba(30, 39, 46, 0.8) 70%,
        var(--dark-bg) 100%);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.semicircle-base::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(180deg,
        var(--dynamic-color, var(--primary-blue)) 0%,
        var(--success-green) 50%,
        transparent 100%);
    border-radius: inherit;
    z-index: -1;
    transition: all 0.6s ease;
}

.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 168, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(46, 213, 115, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(0, 168, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 70% 80%, rgba(46, 213, 115, 0.08) 1px, transparent 1px);
    background-size: 50px 50px, 60px 60px, 40px 40px, 55px 55px;
    animation: circuitFlow 20s linear infinite;
}

@keyframes circuitFlow {
    0% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
    100% { background-position: 50px 50px, -60px 60px, 40px -40px, -55px 55px; }
}

.energy-flow {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary-blue) 20%,
        var(--success-green) 50%,
        var(--primary-blue) 80%,
        transparent 100%);
    border-radius: 2px;
    opacity: 0.6;
    animation: energyPulse 3s ease-in-out infinite;
}

@keyframes energyPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.center-console {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 300px;
    border-radius: 30%;
    background: linear-gradient(145deg,
        rgba(30, 39, 46, 0.95) 0%,
        rgba(22, 27, 34, 0.95) 100%);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.console-screen {
    width: 280px;
    height: 260px;
    border-radius: 30%;
    background: radial-gradient(circle,
        rgba(0, 168, 255, 0.05) 0%,
        rgba(30, 39, 46, 0.9) 70%);
    border: 1px solid rgba(0, 168, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.screen-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle,
        rgba(0, 168, 255, 0.1) 0%,
        transparent 60%);
    animation: screenGlow 4s ease-in-out infinite;
}

@keyframes screenGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.current-position {
    text-align: center;
    z-index: 2;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.current-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.position-title {
    font-family: var(--font-tech);
    font-size: 1.3rem;
    color: var(--text-accent);
    margin: 0 0 10px 0;
    line-height: 1.2;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
    text-align: center;
}

.position-company {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    font-weight: 500;
    text-align: center;
}

.company-name {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    font-weight: 500;
    text-align: center !important;
    display: block;
    width: 100%;
    text-indent: 0 !important;
}

.position-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success-green);
    box-shadow: 0 0 15px var(--success-green);
    animation: pulse 2s infinite;
}

.position-status span {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--success-green);
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(46, 213, 115, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Experience Section Responsive */
    .experience-section {
        min-height: 100vh;
        padding: 80px 0 0 0;
    }
    
    .experience-info-panel {
        width: 95%;
        margin-bottom: 40px;
    }
    
    .tech-horizon {
        height: 350px;
    }
    
    .nav-controls {
        top: -80px;
    }
    
    .nav-arrow {
        width: 50px;
        height: 50px;
    }
    
    /* Original styles */
    .semicircle-base {
        width: 600px;
        height: 300px;
    }
    
    .center-console {
        width: 260px;
        height: 240px;
        border-radius: 30%;
    }
    
    .console-screen {
        width: 220px;
        height: 200px;
        border-radius: 30%;
    }
    
    .position-title {
        font-size: 1.1rem;
    }
    
    /* Hero Footer Responsive */
    .hero-footer {
        flex-direction: column;
        gap: 20px;
        bottom: 20px;
        width: 95%;
    }
    
    .data-stream {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .stream-item {
        min-width: auto;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    /* Experience Section Mobile */
    .experience-section {
        min-height: 100vh;
        padding: 60px 0 0 0;
    }
    
    .experience-info-panel {
        top: 30px;
        width: 95%;
        margin-bottom: 30px;
    }
    
    .panel-container {
        padding: 20px;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .panel-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .control-button {
        flex: 1;
        min-width: 120px;
        padding: 10px 15px;
        font-size: 0.7rem;
    }
    
    .tech-horizon {
        height: 300px;
    }
    
    .nav-controls {
        top: -60px;
    }
    
    .nav-arrow {
        width: 45px;
        height: 45px;
    }
    
    .nav-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .nav-left {
        margin-left: 15px;
    }
    
    .nav-right {
        margin-right: 15px;
    }
    
    .semicircle-base {
        width: 400px;
        height: 200px;
    }
    
    .center-console {
        width: 200px;
        height: 190px;
        border-radius: 30%;
    }
    
    .console-screen {
        width: 170px;
        height: 160px;
        border-radius: 30%;
    }
    
    .position-title {
        font-size: 0.9rem;
    }
    
    .position-company {
        font-size: 0.8rem;
    }
    
    .nav-arrow {
        width: 50px;
        height: 50px;
    }
    
    .nav-left,
    .nav-right {
        margin-left: 20px;
        margin-right: 20px;
    }
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Project-specific background images */
.project-card[data-category="ai"] .project-image {
    background-image: linear-gradient(135deg, rgba(0, 168, 255, 0.8), rgba(46, 213, 115, 0.8)),
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><rect width="200" height="200" fill="%23000"/><g fill="%2300a8ff" opacity="0.3"><circle cx="50" cy="50" r="8"/><circle cx="150" cy="50" r="8"/><circle cx="100" cy="100" r="12"/><circle cx="50" cy="150" r="8"/><circle cx="150" cy="150" r="8"/><line x1="50" y1="50" x2="100" y2="100" stroke="%2300a8ff" stroke-width="2"/><line x1="150" y1="50" x2="100" y2="100" stroke="%2300a8ff" stroke-width="2"/><line x1="100" y1="100" x2="50" y2="150" stroke="%2300a8ff" stroke-width="2"/><line x1="100" y1="100" x2="150" y2="150" stroke="%2300a8ff" stroke-width="2"/></g></svg>');
}

.project-card[data-category="automation"] .project-image {
    background-image: linear-gradient(135deg, rgba(255, 107, 53, 0.8), rgba(255, 165, 2, 0.8)),
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><rect width="200" height="200" fill="%23192a56"/><g fill="%23ff6b35" opacity="0.4"><rect x="40" y="40" width="30" height="20" rx="2"/><rect x="40" y="80" width="30" height="20" rx="2"/><rect x="40" y="120" width="30" height="20" rx="2"/><rect x="130" y="60" width="30" height="80" rx="4"/><line x1="70" y1="50" x2="130" y2="100" stroke="%23ff6b35" stroke-width="3"/><line x1="70" y1="90" x2="130" y2="100" stroke="%23ff6b35" stroke-width="3"/><line x1="70" y1="130" x2="130" y2="100" stroke="%23ff6b35" stroke-width="3"/></g></svg>');
}

.project-card[data-category="iot"] .project-image {
    background-image: linear-gradient(135deg, rgba(46, 213, 115, 0.8), rgba(100, 255, 218, 0.8)),
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><rect width="200" height="200" fill="%230a0e27"/><g fill="%232ed573" opacity="0.5"><circle cx="100" cy="100" r="40" fill="none" stroke="%232ed573" stroke-width="2"/><circle cx="100" cy="100" r="60" fill="none" stroke="%232ed573" stroke-width="1" opacity="0.5"/><circle cx="100" cy="100" r="80" fill="none" stroke="%232ed573" stroke-width="1" opacity="0.3"/><circle cx="100" cy="40" r="6"/><circle cx="160" cy="100" r="6"/><circle cx="100" cy="160" r="6"/><circle cx="40" cy="100" r="6"/><circle cx="130" cy="70" r="4"/><circle cx="130" cy="130" r="4"/><circle cx="70" cy="130" r="4"/><circle cx="70" cy="70" r="4"/></g></svg>');
}

.project-card[data-category="web"] .project-image {
    background-image: linear-gradient(135deg, rgba(100, 255, 218, 0.8), rgba(0, 168, 255, 0.8)),
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><rect width="200" height="200" fill="%23192a56"/><g fill="%2364ffda" opacity="0.4"><rect x="30" y="30" width="140" height="90" rx="8" fill="none" stroke="%2364ffda" stroke-width="3"/><rect x="40" y="50" width="120" height="50" rx="4" fill="%2364ffda" opacity="0.2"/><circle cx="50" cy="40" r="3"/><circle cx="60" cy="40" r="3"/><circle cx="70" cy="40" r="3"/><rect x="80" y="140" width="40" height="30" rx="4"/><line x1="100" y1="120" x2="100" y2="140" stroke="%2364ffda" stroke-width="2"/></g></svg>');
}

/* Enhanced project image animations */
.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255,255,255,0.1) 45%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0.1) 55%, 
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.project-card:hover .project-image::before {
    transform: translateX(100%);
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 
        transparent 0%, 
        rgba(0, 168, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

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

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

.project-tech span {
    padding: 8px 15px;
    background: var(--text-accent);
    color: var(--dark-bg);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-content {
    padding: 30px;
}

.project-content h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.project-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-accent);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Clean & Functional Skills Section */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skill-category {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.15);
    border-color: var(--primary-blue);
}

.category-header {
    background: linear-gradient(135deg, var(--secondary-blue), var(--dark-bg));
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.category-header h3 {
    font-family: var(--font-tech);
    color: var(--text-accent);
    font-size: 1rem;
    letter-spacing: 1px;
    margin: 0;
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 168, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    background: rgba(0, 168, 255, 0.08);
    border-color: var(--primary-blue);
    transform: translateX(5px);
}

.skill-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-blue);
    border-radius: 10px;
    flex-shrink: 0;
}

.skill-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-content h4 {
    font-family: var(--font-tech);
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--success-green), var(--text-accent));
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.skill-level {
    font-family: var(--font-tech);
    color: var(--text-accent);
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .semicircle-container {
        width: 400px;
        height: 200px;
    }
    
    .experience-point {
        width: 40px;
        height: 40px;
    }
    
    .point-marker {
        width: 40px;
        height: 40px;
    }
    
    .experience-center {
        width: 150px;
        height: 150px;
    }
    
    .current-title {
        font-size: 0.8rem;
    }
    
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tab-nav {
        flex-direction: column;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

.ai-skill {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ai-skill span {
    color: var(--text-accent);
    font-weight: 600;
}

/* IoT Network */
.iot-network {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iot-hub {
    position: relative;
    z-index: 2;
}

.hub-core {
    width: 60px;
    height: 60px;
    background: var(--text-accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--text-accent);
}

.hub-ring {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.iot-devices {
    position: absolute;
    width: 100%;
    height: 100%;
}

.iot-device {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.iot-device:nth-child(1) { top: 20px; left: 50%; transform: translateX(-50%); }
.iot-device:nth-child(2) { top: 50%; right: 20px; transform: translateY(-50%); }
.iot-device:nth-child(3) { bottom: 20px; left: 50%; transform: translateX(-50%); }
.iot-device:nth-child(4) { top: 50%; left: 20px; transform: translateY(-50%); }

.iot-device:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--primary-blue);
}


/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.info-panel,
.certifications-panel {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-panel);
}

.info-panel h4,
.certifications-panel h4 {
    font-family: var(--font-tech);
    color: var(--text-accent);
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 168, 255, 0.05);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.contact-item:hover {
    background: rgba(0, 168, 255, 0.1);
    transform: translateX(5px);
}

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

.contact-details {
    flex: 1;
}

.contact-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.contact-details a {
    color: var(--text-accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(46, 213, 115, 0.05);
    border-radius: 8px;
}

.cert-badge {
    font-size: 1.2rem;
    color: var(--success-green);
}

.cert-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-panel);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-header h4 {
    font-family: var(--font-tech);
    color: var(--text-accent);
    letter-spacing: 2px;
}

.form-status {
    font-size: 0.8rem;
    color: var(--success-green);
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--secondary-blue);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--text-accent));
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.form-group input:focus + .input-glow,
.form-group textarea:focus + .input-glow {
    transform: scaleX(1);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-blue), var(--text-accent));
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-tech);
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-effect {
    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;
}

.submit-btn:hover .btn-effect {
    left: 100%;
}

.contact-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.system-info {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0,168,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,168,255,0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: slidePattern 20s linear infinite;
}

.data-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 200px,
        rgba(100,255,218,0.02) 200px,
        rgba(100,255,218,0.02) 202px
    );
    animation: dataFlowBg 15s linear infinite;
}

@keyframes slidePattern {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

@keyframes dataFlowBg {
    from { transform: translateX(-100px); }
    to { transform: translateX(100px); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-panel {
        transform: translateX(-100%);
    }
    
    .nav-panel.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .section {
        padding: 60px 40px;
    }
    
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-content {
        width: 100%;
        margin: 0;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-grid {
        text-align: center;
    }
    
    .terminal-window {
        font-size: 0.8rem;
    }
    
    .projects-grid,
    .lab-grid {
        grid-template-columns: 1fr;
    }
    
    .plc-interface {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
.data-stream {
        flex-direction: column;
        gap: 10px;
    }
}

/* Experience Detail Panels */
.experience-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #2c5282;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: linear-gradient(135deg, #2c5282, #1a365d);
    border: none;
    color: #e2e8f0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-btn:first-child {
    border-radius: 8px 0 0 0;
}

.tab-btn:last-child {
    border-radius: 0 8px 0 0;
}

.tab-btn:hover {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #2ed573, #27c463);
    color: #1a202c;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #2ed573;
    box-shadow: 0 2px 10px rgba(46, 213, 115, 0.5);
}

.tab-panels {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.tab-panel {
    display: none;
    padding: 25px;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

/* Activities Tab */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(46, 213, 115, 0.2);
    position: relative;
    padding-left: 30px;
    color: #e2e8f0;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.activity-list li:before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #2ed573;
    font-size: 12px;
    top: 12px;
    transition: all 0.3s ease;
}

.activity-list li:hover {
    padding-left: 40px;
    color: #2ed573;
}

.activity-list li:hover:before {
    transform: translateX(5px);
}

/* Technologies Tab */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tech-tag {
    background: linear-gradient(135deg, #00a8ff, #0097e6);
    color: white;
    padding: 12px 18px;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
}

.tech-tag:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.tech-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.5);
}

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

/* Achievements Tab */
.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.1), rgba(46, 213, 115, 0.05));
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #2ed573;
    transition: all 0.3s ease;
    cursor: pointer;
}

.achievement-item:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.2), rgba(46, 213, 115, 0.1));
}

.achievement-icon {
    font-size: 32px;
    min-width: 50px;
    text-align: center;
    animation: bounce 2s infinite;
}

.achievement-text {
    color: #e2e8f0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    text-align: center;
    width: auto;
    min-width: fit-content;
    box-sizing: border-box;
}

.status-badge.active {
    background: linear-gradient(135deg, #2ed573, #27c463);
    color: #1a202c;
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.4);
}

.status-badge.completed {
    background: linear-gradient(135deg, #00a8ff, #0097e6);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Activities Floating Panel */
.activities-panel {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    min-height: 100px;
    background: linear-gradient(135deg, var(--card-bg), var(--secondary-blue));
    border: 2px solid var(--text-accent);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(46, 213, 115, 0.3);
    padding: 20px;
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 20;
    pointer-events: none;
}

.activities-panel.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
    animation: slideDown 0.6s ease;
}

.activities-panel::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--text-accent);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(46, 213, 115, 0.3);
}

.panel-title {
    font-family: var(--font-tech);
    color: var(--text-accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.panel-year {
    font-family: var(--font-tech);
    color: var(--text-secondary);
    font-size: 0.7rem;
    background: rgba(46, 213, 115, 0.1);
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.activities-content {
    max-height: 200px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInActivity 0.4s ease forwards;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:nth-child(1) { animation-delay: 0.1s; }
.activity-item:nth-child(2) { animation-delay: 0.2s; }
.activity-item:nth-child(3) { animation-delay: 0.3s; }
.activity-item:nth-child(4) { animation-delay: 0.4s; }
.activity-item:nth-child(5) { animation-delay: 0.5s; }

.activity-bullet {
    width: 8px;
    height: 8px;
    background: var(--success-green);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(46, 213, 115, 0.5);
}

.activity-text {
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes slideInActivity {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive para el panel flotante */
@media (max-width: 768px) {
    .activities-panel {
        width: 320px;
        top: -100px;
        padding: 15px;
    }
    
    .activity-text {
        font-size: 0.8rem;
    }
}

/* Responsive Design for Experience Section */
@media (max-width: 768px) {
    .experience-semicircle {
        width: 300px;
        height: 150px;
    }
    
    .experience-point {
        width: 12px;
        height: 12px;
    }
    
    .center-display {
        width: 120px;
        height: 120px;
    }
    
    .current-title {
        font-size: 12px;
    }
    
    .current-company {
        font-size: 10px;
    }
    
    .experience-details {
        margin-top: 20px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .tab-btn {
        font-size: 12px;
        padding: 12px 15px;
    }
    
    .achievement-item {
        flex-direction: column;
        text-align: center;
    }
    
    .achievement-icon {
        margin-bottom: 10px;
    }
}
    .experience-semicircle {
        width: 300px;
        height: 150px;
    }
    
    .experience-point {
        width: 12px;
        height: 12px;
    }
    
    .center-display {
        width: 120px;
        height: 120px;
    }
    
    .current-title {
        font-size: 12px;
    }
    
    .current-company {
        font-size: 10px;
    }
    
    .experience-details {
        margin-top: 20px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .tab-btn {
        font-size: 12px;
        padding: 12px 15px;
    }
    
    .achievement-item {
        flex-direction: column;
        text-align: center;
    }
    
    .achievement-icon {
        margin-bottom: 10px;
    }

