/* ===== PROFESSIONAL HACKER PORTFOLIO ===== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

/* ===== PROFESSIONAL ANIMATIONS & KEYFRAMES ===== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary), 0 0 15px var(--primary);
    }
    50% {
        box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px var(--primary);
    }
    50% {
        text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes typewriter {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes borderGlow {
    0%, 100% {
        border-color: var(--border-primary);
        box-shadow: none;
    }
    50% {
        border-color: var(--primary);
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
}

@keyframes matrixRain {
    0% {
        transform: translateY(-100vh);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* ===== ENTERPRISE ANIMATIONS ===== */
@keyframes morphIn {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateX(-10deg);
        filter: blur(4px);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05) rotateX(0deg);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0deg);
        filter: blur(0px);
    }
}

@keyframes smoothSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(2px);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-2px) scale(1.01);
        filter: blur(0.5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes elasticScale {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes premiumGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
        border-color: var(--border-primary);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.4), 0 0 40px rgba(0, 255, 136, 0.1);
        border-color: rgba(0, 255, 136, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
        border-color: var(--border-primary);
    }
}

@keyframes liquidTransition {
    0% {
        clip-path: circle(0% at 50% 50%);
        opacity: 0;
    }
    50% {
        clip-path: circle(60% at 50% 50%);
        opacity: 0.7;
    }
    100% {
        clip-path: circle(100% at 50% 50%);
        opacity: 1;
    }
}

@keyframes magneticHover {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.02);
    }
    100% {
        transform: translateY(-4px) scale(1.03);
    }
}

@keyframes breathingGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.5), 0 0 40px rgba(0, 255, 136, 0.2);
        filter: brightness(1.1);
    }
}

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

:root {
    /* Minimal Color Palette */
    --primary: #00ff88;
    --secondary: #ffffff;
    --accent: #ff6b6b;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    /* Backgrounds */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: rgba(17, 17, 17, 0.8);
    --bg-terminal: #000000;
    
    /* Borders & Effects */
    --border-primary: #333333;
    --border-accent: #00ff88;
    --shadow-primary: 0 4px 20px rgba(0, 255, 136, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 255, 136, 0.2);
    
    /* ENTERPRISE-LEVEL ANIMATION SYSTEM */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Premium Durations */
    --duration-instant: 150ms;
    --duration-fast: 250ms;
    --duration-normal: 400ms;
    --duration-slow: 600ms;
    --duration-extra-slow: 800ms;
    
    /* Advanced Shadows */
    --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-small: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    --shadow-extra-large: 0 25px 50px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.4);
    --shadow-glow-strong: 0 0 40px rgba(0, 255, 136, 0.6);
}

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

*::selection {
    background: var(--primary);
    color: var(--bg-primary);
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

/* ===== BACKGROUND IMAGES ===== */
.background-images {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
}

.background-images::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    background: linear-gradient(
        to top,
        var(--bg-primary) 0%,
        rgba(10, 10, 10, 0.98) 8%,
        rgba(10, 10, 10, 0.95) 15%,
        rgba(10, 10, 10, 0.9) 22%,
        rgba(10, 10, 10, 0.85) 30%,
        rgba(10, 10, 10, 0.75) 38%,
        rgba(10, 10, 10, 0.65) 46%,
        rgba(10, 10, 10, 0.55) 54%,
        rgba(10, 10, 10, 0.45) 62%,
        rgba(10, 10, 10, 0.35) 70%,
        rgba(10, 10, 10, 0.25) 78%,
        rgba(10, 10, 10, 0.15) 86%,
        rgba(10, 10, 10, 0.08) 92%,
        rgba(10, 10, 10, 0.03) 96%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

.background-images::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(
        to bottom,
        var(--bg-primary) 0%,
        rgba(10, 10, 10, 0.95) 10%,
        rgba(10, 10, 10, 0.85) 25%,
        rgba(10, 10, 10, 0.7) 40%,
        rgba(10, 10, 10, 0.5) 55%,
        rgba(10, 10, 10, 0.3) 70%,
        rgba(10, 10, 10, 0.15) 85%,
        rgba(10, 10, 10, 0.05) 95%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: grayscale(40%) brightness(0.6) blur(0.5px);
    transition: opacity 2s ease-in-out;
    animation: backgroundRotate 18s infinite;
}

.bg-image:nth-child(1) {
    animation-delay: 0s;
}

.bg-image:nth-child(2) {
    animation-delay: 6s;
}

.bg-image:nth-child(3) {
    animation-delay: 12s;
}

@keyframes backgroundRotate {
    0%, 16.66% { opacity: 0.4; }
    33.33%, 50% { opacity: 0.6; }
    66.66%, 83.33% { opacity: 0.4; }
    100% { opacity: 0; }
}

/* ===== SUBTLE GRID OVERLAY ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

/* ===== DARK OVERLAY FOR READABILITY ===== */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(10, 10, 10, 0.2) 0%,
        rgba(10, 10, 10, 0.5) 100%
    );
    z-index: -1;
    pointer-events: none;
}

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

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

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

/* ===== ENHANCED LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f0f0f 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.loading-screen::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: loadingPulse 3s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
}

.loading-text {
    color: var(--primary);
    font-size: 1rem;
    position: relative;
    font-weight: 300;
    z-index: 2;
    animation: textGlow 2s ease-in-out infinite;
}

.loading-prefix {
    color: var(--text-secondary);
    margin-right: 8px;
    animation: fadeInLeft 0.8s ease-out;
}

.loading-bar {
    position: absolute;
    bottom: -12px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #00ccaa, var(--primary));
    animation: loading 3s ease-out forwards;
    border-radius: 1px;
    box-shadow: 0 0 10px var(--primary);
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
    animation: loadingShine 3s ease-out forwards;
}

@keyframes loading {
    0% { 
        width: 0;
        box-shadow: 0 0 5px var(--primary);
    }
    100% { 
        width: 100%;
        box-shadow: 0 0 15px var(--primary);
    }
}

@keyframes loadingShine {
    0% { 
        transform: translateX(-20px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% { 
        transform: translateX(0);
        opacity: 0;
    }
}

/* ===== ENTERPRISE NAVIGATION ===== */
.nav {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    gap: 0;
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    backdrop-filter: blur(24px) saturate(180%);
    overflow: hidden;
    animation: morphIn var(--duration-slow) var(--ease-out-expo);
    box-shadow: var(--shadow-large), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all var(--duration-normal) var(--ease-out-expo);
    will-change: transform, box-shadow;
}

.nav:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-extra-large), var(--shadow-glow);
    border-color: rgba(0, 255, 136, 0.3);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 14px 18px;
    transition: all var(--duration-normal) var(--ease-out-expo);
    border-right: 1px solid var(--border-primary);
    font-weight: 400;
    position: relative;
    overflow: hidden;
    will-change: transform, color, background;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 255, 136, 0.15), rgba(0, 255, 136, 0.05), transparent);
    transition: left var(--duration-slow) var(--ease-out-circ);
    will-change: left;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: all var(--duration-normal) var(--ease-out-expo);
    transform: translateX(-50%);
    will-change: width;
}

.nav-link:hover::after {
    width: 90%;
}

.nav-link:last-child {
    border-right: none;
}

.nav-link:hover {
    background: rgba(0, 255, 136, 0.08);
    color: var(--primary);
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-link:active {
    transform: translateY(-1px) scale(1.02);
    transition-duration: var(--duration-fast);
}

/* ===== ENHANCED HEADER ===== */
.glitch-header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.glitch-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.03) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

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

.terminal-prompt {
    color: var(--primary);
}

.command-text {
    color: var(--text-primary);
}

.glitch {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    color: var(--secondary);
    margin: 20px 0;
    position: relative;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
}

.terminal-cursor::after {
    content: "_";
    animation: blink 1.5s infinite;
    color: var(--primary);
    margin-left: 2px;
    text-shadow: 0 0 5px var(--primary);
}

@keyframes blink {
    0%, 50% { 
        opacity: 1;
        text-shadow: 0 0 5px var(--primary);
    }
    51%, 100% { 
        opacity: 0;
        text-shadow: none;
    }
}

.status-indicators {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    margin-top: 30px;
    flex-wrap: wrap;
}

.status {
    color: var(--primary);
    font-weight: 500;
    position: relative;
}

.status.online::before {
    content: "●";
    margin-right: 6px;
    animation: pulse 3s infinite;
}

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

.status-separator {
    color: var(--text-muted);
}

.location, .uptime {
    color: var(--text-secondary);
    font-weight: 300;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 5%;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.scroll-down::after {
    content: "";
    display: block;
    width: 1px;
    height: 60px;
    background: var(--primary);
    margin: 20px auto 0;
}

/* ===== ENHANCED MAIN CONTENT ===== */
main {
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

section {
    padding: 120px 0;
    min-height: auto;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: sectionSweep 2s ease-out;
}

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

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 60px;
    color: var(--secondary);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transform: none !important; /* Prevenir efectos parallax no deseados */
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: titleShine 2s ease-out;
    pointer-events: none;
}

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

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #00ccaa);
    animation: titleUnderline 1s ease-out 0.5s forwards;
}

@keyframes titleUnderline {
    0% { width: 0; }
    100% { width: 80px; }
}

/* ===== ENTERPRISE TERMINAL WINDOWS ===== */
.terminal-window {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(10, 10, 10, 0.98));
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    margin-bottom: 60px;
    overflow: hidden;
    box-shadow: var(--shadow-extra-large), 0 0 0 1px rgba(0, 255, 136, 0.1);
    position: relative;
    transform: translateY(40px) rotateX(5deg);
    opacity: 0;
    animation: morphIn var(--duration-extra-slow) var(--ease-out-expo) 0.3s forwards;
    transition: all var(--duration-normal) var(--ease-out-expo);
    will-change: transform, box-shadow, border-color;
    backdrop-filter: blur(16px);
}

.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), rgba(0, 255, 136, 0.5), var(--primary), transparent);
    opacity: 0;
    animation: breathingGlow 4s ease-in-out infinite 2s;
    will-change: opacity;
}

.terminal-window::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), transparent, rgba(0, 255, 136, 0.05));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.terminal-window:hover {
    transform: translateY(-8px) rotateX(0deg) scale(1.01);
    box-shadow: var(--shadow-extra-large), var(--shadow-glow), 0 0 0 1px rgba(0, 255, 136, 0.3);
    border-color: rgba(0, 255, 136, 0.4);
}

.terminal-window:hover::after {
    opacity: 1;
}

.terminal-header-bar {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95), rgba(25, 25, 25, 0.9));
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    backdrop-filter: blur(8px);
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.terminal-window:hover .terminal-header-bar {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.98), rgba(25, 25, 25, 0.95));
    border-bottom-color: rgba(0, 255, 136, 0.2);
}


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

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all var(--duration-fast) var(--ease-spring);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--duration-fast) var(--ease-spring);
}

.btn:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px currentColor;
}

.btn:hover::before {
    opacity: 0.3;
    transform: scale(1.5);
}

.btn.close { 
    background: linear-gradient(135deg, #ff5f57, #ff8a80);
    color: #ff5f57;
}
.btn.minimize { 
    background: linear-gradient(135deg, #ffbd2e, #ffd54f);
    color: #ffbd2e;
}
.btn.maximize { 
    background: linear-gradient(135deg, #28ca42, #66bb6a);
    color: #28ca42;
}

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
}

.terminal-content {
    padding: 40px;
}

.code-block {
    background: rgba(0, 255, 136, 0.05);
    border-left: 2px solid var(--primary);
    padding: 30px;
    margin: 30px 0;
}

.terminal-line {
    margin: 20px 0;
    font-size: 1rem;
    line-height: 1.8;
}

.prompt {
    color: var(--primary);
    margin-right: 12px;
    font-weight: 500;
}

.highlight {
    color: var(--primary);
    font-weight: 500;
    position: relative;
}

/* ===== SKILLS SECTION - NUEVO DISEÑO VISUAL ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
    max-width: 100%;
}

.skill-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(10, 10, 10, 0.8));
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 20px;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px) saturate(150%);
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px) rotateX(15deg);
    animation: smoothSlideUp var(--duration-slow) var(--ease-out-expo) forwards;
    will-change: transform, box-shadow, border-color;
}

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

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05), transparent);
    transition: left var(--duration-slow) var(--ease-out-circ);
    will-change: left;
}

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

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: all var(--duration-normal) var(--ease-out-expo);
    will-change: opacity;
}

.skill-card:hover::after {
    opacity: 1;
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    position: relative;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.skill-icon i {
    transition: all var(--duration-normal) var(--ease-out-expo);
    filter: drop-shadow(0 0 10px currentColor);
}

.skill-card:hover .skill-icon i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 20px currentColor);
}

.skill-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.skill-card:hover h3 {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(10, 10, 10, 0.6));
    border: 1px solid var(--border-primary);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--duration-fast) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    transition: left var(--duration-normal) var(--ease-out-circ);
}

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

.skill-tag:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(0, 255, 136, 0.6);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

/* Colores específicos por nivel */
.skill-tag.advanced {
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3);
}

.skill-tag.intermediate {
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.3);
}

.skill-tag.beginner {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

/* Colores específicos por categoría */
.skill-card.frontend .skill-icon i {
    color: #61dafb;
}

.skill-card.backend .skill-icon i {
    color: #68d391;
}

.skill-card.database .skill-icon i {
    color: #f6ad55;
}

.skill-card.devops .skill-icon i {
    color: #9f7aea;
}

.skill-card:hover {
    border-color: rgba(0, 255, 136, 0.6);
    transform: translateY(-8px) rotateX(0deg) scale(1.02);
    box-shadow: var(--shadow-extra-large), var(--shadow-glow);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 255, 136, 0.08));
}

.skill-card:active {
    transform: translateY(-5px) rotateX(0deg) scale(1.01);
    transition-duration: var(--duration-fast);
}

/* Leyenda de niveles */
.skill-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(8px);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.legend-item:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all var(--duration-fast) var(--ease-out-expo);
    box-shadow: 0 0 8px currentColor;
}

.legend-dot.advanced {
    background: #00ff88;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
}

.legend-dot.intermediate {
    background: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.legend-dot.beginner {
    background: #ff6b6b;
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.6);
}

/* Responsive */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skill-card {
        padding: 18px;
    }
    
    .skill-icon {
        font-size: 1.8rem;
        height: 50px;
    }
    
    .skill-legend {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .skill-card {
        padding: 20px;
    }
    
    .skill-icon {
        font-size: 1.8rem;
        height: 50px;
    }
    
    .skill-tags {
        gap: 6px;
    }
    
    .skill-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ===== 3D CAROUSEL PROJECTS SECTION ===== */
.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 1200px;
    overflow: hidden;
    margin: 60px 0;
    cursor: grab;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.project-card {
    position: absolute;
    width: 450px;
    height: 500px;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95), rgba(25, 25, 25, 0.98));
    border: 1px solid var(--border-primary);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(16px) saturate(130%);
    box-shadow: var(--shadow-extra-large);
    transition: all var(--duration-normal) var(--ease-out-expo);
    transform-style: preserve-3d;
    overflow: hidden;
    left: 50%;
    top: 50%;
    margin-left: -225px;
    margin-top: -250px;
    opacity: 0.6;
    transform: translateZ(-200px) rotateY(45deg) scale(0.8);
    will-change: transform, opacity, box-shadow;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 136, 1) 0%,
        rgba(0, 255, 136, 0.8) 15%,
        rgba(0, 255, 136, 0.6) 30%,
        rgba(0, 255, 136, 0.4) 45%,
        rgba(0, 255, 136, 0.2) 60%,
        rgba(0, 255, 136, 0.1) 75%,
        rgba(0, 255, 136, 0.05) 90%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-expo);
    z-index: 1;
    will-change: opacity;
    border-radius: 20px;
}

.project-card:hover::before {
    opacity: 0.15;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), transparent, rgba(0, 255, 136, 0.1));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-expo);
}

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

/* Posiciones del carrusel 3D */
.project-card.active {
    opacity: 1;
    transform: translateZ(0) rotateY(0deg) scale(1);
    z-index: 3;
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow: var(--shadow-extra-large), var(--shadow-glow);
}

.project-card.next {
    opacity: 0.7;
    transform: translateZ(-150px) translateX(200px) rotateY(-25deg) scale(0.85);
    z-index: 2;
}

.project-card.prev {
    opacity: 0.7;
    transform: translateZ(-150px) translateX(-200px) rotateY(25deg) scale(0.85);
    z-index: 2;
}

.project-card.hidden {
    opacity: 0.3;
    transform: translateZ(-300px) scale(0.6);
    z-index: 1;
}

.project-card:hover {
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: var(--shadow-extra-large), var(--shadow-glow-strong);
}

.project-card.active:hover {
    transform: translateZ(20px) rotateY(0deg) scale(1.02);
}

.project-card h3 {
    color: var(--secondary);
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.project-links {
    display: flex;
    gap: 16px;
}

.project-link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, transparent, rgba(0, 255, 136, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.6);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--duration-normal) var(--ease-out-expo);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    z-index: 2;
    backdrop-filter: blur(8px);
    will-change: transform, box-shadow, background;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), rgba(0, 255, 136, 0.8));
    transition: left var(--duration-normal) var(--ease-out-expo);
    z-index: -1;
    will-change: left;
}

.project-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), transparent, rgba(0, 255, 136, 0.5));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out-expo);
}

.project-link:hover::before {
    left: 0;
}

.project-link:hover::after {
    opacity: 1;
}

.project-link:hover {
    color: var(--bg-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium), var(--shadow-glow);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.project-link:active {
    transform: translateY(-1px) scale(1.02);
    transition-duration: var(--duration-fast);
}

/* ===== AWARDS SECTION ===== */
.award-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    padding: 50px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.award-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.award-item h3 {
    color: var(--secondary);
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.award-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1rem;
}

.award-gallery {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.award-img {
    max-width: 280px;
    max-height: 180px;
    object-fit: cover;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.award-img:hover {
    filter: grayscale(0%);
    border-color: var(--primary);
}

/* ===== GALLERY SECTION ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-primary);
    aspect-ratio: 4/3;
    background: var(--bg-secondary);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--text-primary);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ===== CONTACT SECTION ===== */
.contact {
    text-align: left;
}

.contact p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-method {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    padding: 30px;
    transition: all 0.3s ease;
    text-align: left;
}

.contact-method:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.contact-method h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-method p,
.contact-method a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

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

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: 60px 0;
    margin-top: 120px;
    position: relative;
}

.footer-terminal {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-line {
    margin: 12px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-line .prompt {
    color: var(--primary);
    font-weight: 400;
}

.footer-line .command {
    color: var(--text-secondary);
}

.footer-line .output {
    color: var(--text-secondary);
    margin-left: 16px;
}

.status-secure {
    color: var(--primary) !important;
}

.back-to-top {
    position: absolute;
    top: -22px;
    right: 5%;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.tooltip {
    display: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    main {
        padding: 0 4%;
    }
    
    .glitch-header {
        padding: 0 4%;
    }
    
    .footer-terminal {
        padding: 0 4%;
    }
}

@media (max-width: 768px) {
    .nav {
        top: 20px;
        right: 20px;
        flex-direction: column;
    }
    
    .nav-link {
        border-right: none;
        border-bottom: 1px solid var(--border-primary);
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .glitch-header {
        padding: 0 6%;
    }
    
    main {
        padding: 0 6%;
    }
    
    .footer-terminal {
        padding: 0 6%;
    }
    
    .terminal-content {
        padding: 30px 20px;
    }
    
    .project-list {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .skill-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .status-indicators {
        flex-direction: column;
        gap: 8px;
    }
    
    .scroll-down {
        display: none;
    }
    
    section {
        padding: 80px 0;
    }
    
    /* Mejorar responsive de botones del hero */
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-top: 30px;
    }
    
    .cta-button {
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.85rem;
        min-height: 50px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .cta-button i {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .terminal-content {
        padding: 20px 16px;
    }
    
    .project-item,
    .award-item,
    .contact-method {
        padding: 24px;
    }
    
    .code-block {
        padding: 20px;
    }
    
    .back-to-top {
        right: 20px;
    }
}

/* ===== HERO SECTION IMPROVEMENTS ===== */
.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    animation: fadeInUp var(--duration-slow) var(--ease-out-expo) 1s;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
    will-change: transform, box-shadow;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transition: left var(--duration-slow) var(--ease-out-circ);
    will-change: left;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary), rgba(0, 255, 136, 0.8));
    color: var(--bg-primary);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-medium), 0 0 20px rgba(0, 255, 136, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-large), var(--shadow-glow-strong);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button.secondary {
    background: rgba(17, 17, 17, 0.9);
    color: var(--primary);
    border: 2px solid rgba(0, 255, 136, 0.6);
    box-shadow: var(--shadow-small);
}

.cta-button.secondary:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px) scale(1.03);
    box-shadow: var(--shadow-medium), 0 0 15px rgba(0, 255, 136, 0.2);
}

.cta-button.tertiary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 2px solid var(--border-primary);
    box-shadow: var(--shadow-small);
}

.cta-button.tertiary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.projects-count {
    color: var(--text-secondary);
    font-weight: 300;
}

/* ===== PROJECT IMPROVEMENTS ===== */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

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

.tech-tag {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05));
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: all var(--duration-fast) var(--ease-out-expo);
    backdrop-filter: blur(4px);
}

.tech-tag:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.2);
}

.project-metrics {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    min-width: 80px;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.metric:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.1);
}

.metric-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ===== CAROUSEL NAVIGATION ===== */
.carousel-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.9), rgba(25, 25, 25, 0.95));
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out-expo);
    backdrop-filter: blur(16px);
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow, border-color;
}

.carousel-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.carousel-btn:hover::before {
    opacity: 1;
}

.carousel-btn:hover {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-medium), 0 0 20px rgba(0, 255, 136, 0.3);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.carousel-btn:active {
    transform: scale(1.05);
    transition-duration: var(--duration-fast);
}

.carousel-btn.prev {
    margin-left: 20px;
}

.carousel-btn.next {
    margin-right: 20px;
}

/* ===== CAROUSEL INDICATORS ===== */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.indicator::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--primary);
    transform: scale(0);
    transition: transform var(--duration-normal) var(--ease-spring);
}

.indicator.active::before,
.indicator:hover::before {
    transform: scale(1);
}

.indicator.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

.indicator:hover {
    transform: scale(1.2);
    border-color: rgba(0, 255, 136, 0.6);
}

.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    justify-content: center;
}

.project-link i {
    margin-right: 6px;
    font-size: 0.8rem;
}

/* ===== SKILLS IMPROVEMENTS ===== */
.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.skill-name {
    font-weight: 500;
    color: var(--text-primary);
}

.skill-level {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out-expo);
}

.skill-item:hover .skill-level {
    opacity: 1;
}

.skill-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), rgba(0, 255, 136, 0.5));
    transition: width 2s ease-out 0.5s;
    border-radius: 2px;
    width: 0;
}

.skill-item.animate::after,
.skill-item:hover::after {
    animation: skillProgress 2s ease-out forwards;
}

.skill-item[data-level="expert"]::after {
    --progress-width: 90%;
}

.skill-item[data-level="advanced"]::after {
    --progress-width: 75%;
}

.skill-item[data-level="intermediate"]::after {
    --progress-width: 60%;
}

@keyframes skillProgress {
    0% { width: 0; }
    100% { width: var(--progress-width, 60%); }
}

/* ===== CONTACT IMPROVEMENTS ===== */
.contact-method {
    position: relative;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.contact-method.priority {
    border: 2px solid rgba(0, 255, 136, 0.4);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 255, 136, 0.02));
}

.contact-method.priority::before {
    content: 'PRIORITARIO';
    position: absolute;
    top: -8px;
    right: 12px;
    background: var(--primary);
    color: var(--bg-primary);
    padding: 2px 8px;
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.response-time {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 8px;
    font-style: italic;
}

.contact-method:hover .response-time {
    color: var(--primary);
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */
/* ===== CAROUSEL RESPONSIVE ===== */
@media (max-width: 1024px) {
    .carousel-container {
        height: 550px;
    }
    
    .project-card {
        width: 400px;
        height: 450px;
        margin-left: -200px;
        margin-top: -225px;
        padding: 35px;
    }
    
    .project-card.next {
        transform: translateZ(-120px) translateX(180px) rotateY(-20deg) scale(0.8);
    }
    
    .project-card.prev {
        transform: translateZ(-120px) translateX(-180px) rotateY(20deg) scale(0.8);
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 500px;
        perspective: 800px;
    }
    
    .project-card {
        width: 350px;
        height: 400px;
        margin-left: -175px;
        margin-top: -200px;
        padding: 30px;
    }
    
    .project-card.next {
        transform: translateZ(-100px) translateX(120px) rotateY(-15deg) scale(0.75);
    }
    
    .project-card.prev {
        transform: translateZ(-100px) translateX(-120px) rotateY(15deg) scale(0.75);
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        margin-left: 10px;
    }
    
    .carousel-btn.next {
        margin-right: 10px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-button {
        justify-content: center;
        padding: 14px 24px;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tech-stack {
        margin-top: 10px;
    }
    
    .project-metrics {
        justify-content: center;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 450px;
        perspective: 600px;
    }
    
    .project-card {
        width: 300px;
        height: 350px;
        margin-left: -150px;
        margin-top: -175px;
        padding: 25px;
        font-size: 0.9rem;
    }
    
    .project-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .project-card p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    
    /* Mejorar responsive de project-links */
    .project-links {
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .project-link {
        padding: 10px 16px;
        font-size: 0.75rem;
        min-width: 120px;
        text-align: center;
        white-space: nowrap;
    }
    
    .project-link i {
        margin-right: 4px;
        font-size: 0.7rem;
    }
    
    .project-card.next {
        transform: translateZ(-80px) translateX(80px) rotateY(-10deg) scale(0.7);
    }
    
    .project-card.prev {
        transform: translateZ(-80px) translateX(-80px) rotateY(10deg) scale(0.7);
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .hero-actions {
        gap: 12px;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .project-metrics {
        gap: 12px;
    }
    
    .metric {
        min-width: 70px;
        padding: 10px 12px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== SCROLL FLOAT EFFECTS ===== */
.scroll-float {
    overflow: hidden;
}

.scroll-float-text {
    display: inline-block;
    font-size: clamp(1.6rem, 8vw, 10rem);
    font-weight: 900;
    text-align: center;
    line-height: 1.5;
}

.scroll-float .char {
    display: inline-block;
    will-change: transform, opacity;
}

/* Ensure section titles work well with ScrollFloat */
h2.section-title.scroll-float {
    overflow: hidden;
}

h2.section-title .scroll-float-text {
    font-size: inherit;
    font-weight: inherit;
    text-align: inherit;
    line-height: inherit;
    color: inherit;
    background: inherit;
    -webkit-background-clip: inherit;
    background-clip: inherit;
    -webkit-text-fill-color: inherit;
}

/* Custom ScrollFloat variations */
.scroll-float-title {
    overflow: hidden;
}

.scroll-float-title .char {
    display: inline-block;
    will-change: transform, opacity;
}

/* ===== SCROLL REVEAL EFFECTS ===== */
.scroll-reveal {
    margin: 20px 0;
}

.scroll-reveal-text {
    font-size: clamp(1.6rem, 4vw, 3rem);
    line-height: 1.5;
    font-weight: 600;
}

.scroll-reveal .word {
    display: inline-block;
    will-change: opacity, filter, transform;
}

/* Specific styles for terminal lines with ScrollReveal */
.terminal-line.scroll-reveal {
    margin: 10px 0;
}

.terminal-line.scroll-reveal .scroll-reveal-text {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    font-family: inherit;
}

/* Specific styles for project descriptions with ScrollReveal */
.project-card p.scroll-reveal {
    margin: 15px 0;
}

.project-card p.scroll-reveal .scroll-reveal-text {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    font-family: inherit;
}

/* Specific styles for contact text with ScrollReveal */
#contact p.scroll-reveal {
    margin: 20px 0;
}

#contact p.scroll-reveal .scroll-reveal-text {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    font-family: inherit;
}

/* Specific styles for award descriptions with ScrollReveal */
.award-item p.scroll-reveal {
    margin: 15px 0;
}

.award-item p.scroll-reveal .scroll-reveal-text {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    font-family: inherit;
}

/* Custom ScrollReveal content */
.scroll-reveal-content {
    margin: 20px 0;
}

.scroll-reveal-content .word {
    display: inline-block;
    will-change: opacity, filter, transform;
}

/* ===== SMOOTH SCROLL WRAPPER ===== */
.smooth-scroll-wrapper {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimize performance for smooth scroll */
.smooth-scroll-wrapper * {
    backface-visibility: hidden;
}

/* Ensure fixed elements work with smooth scroll */
.nav,
.scroll-progress,
.loading-screen {
    position: fixed !important;
    z-index: 9999;
}

/* Hide nav initially until loading is complete */
.nav {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.nav.loaded {
    opacity: 1;
    visibility: visible;
}

/* Print styles */
@media print {
    body::before,
    .loading-screen,
    .nav,
    .scroll-down,
    .back-to-top {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    /* Disable ScrollFloat effects in print */
    .scroll-float .char {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Disable ScrollReveal effects in print */
    .scroll-reveal .word {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    
    /* Disable smooth scroll in print */
    .smooth-scroll-wrapper {
        position: static !important;
        transform: none !important;
    }
}