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

:root {
    /* Colores principales basados en la referencia */
    --primary-bg: #0a0a1a;
    --secondary-bg: #1a1a2e;
    --accent-bg: #16213e;
    --card-bg: #1e1e30;
    
    --primary-color: #3b82f6;
    --secondary-color: #6366f1;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --text-dark: #374151;
    
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --gradient-accent: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    
    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Espaciado */
    --container-padding: 2rem;
    --section-padding: 6rem 0;
    --card-padding: 2rem;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.25);
    
    /* Bordes */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-inner {
    display: flex;
    gap: 10px;
}

.loader-inner span {
    display: block;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: white;
    animation: loader-bounce 1.4s ease-in-out infinite both;
}

.loader-inner span:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes loader-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transition: all var(--transition-normal);
    overflow: visible;
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: 80px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: visible;
    position: relative;
}

.nav-logo a {
    text-decoration: none;
    color: var(--text-primary);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.accent {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

/* ===== LANGUAGE SELECTOR ===== */
.language-selector {
    position: relative;
    margin-left: 1rem;
    z-index: 10000;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    position: relative;
    z-index: 10001;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

.current-lang {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.language-toggle i {
    font-size: 0.8rem;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.language-toggle.active i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: fixed;
    top: 90px;
    right: 2rem;
    background: #1a1a2e;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99999;
    min-width: 150px;
    overflow: visible;
}

.language-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    display: block !important;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 16px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    cursor: pointer;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #ffffff;
    transform: translateX(4px);
}

.lang-option.active {
    background: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.lang-option img {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    flex-shrink: 0;
    object-fit: cover;
}

.lang-option span {
    font-size: 0.95rem;
    font-weight: 500;
    color: inherit;
}

/* Mobile menu overlay - Global */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    display: none;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

/* Prevenir scroll cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
}

/* Asegurar que el menú normal esté visible por defecto */
.nav-menu {
    display: flex !important;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 40px;
    height: 40px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

.profile-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 15%;
    right: 25%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    animation: profileFloat 6s ease-in-out infinite;
    animation-delay: 1s;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.profile-circle:hover .profile-image {
    transform: scale(1.1);
}

@keyframes profileFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(10deg);
    }
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-text {
    z-index: 2;
}

.hero-greeting {
    display: block;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.name-animation {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(45deg); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 2rem;
}

.typing-animation {
    border-right: 2px solid var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--primary-color); }
    51%, 100% { border-color: transparent; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 500px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    transform-origin: center;
}

.stat-number.animating {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.stat-number.completed {
    transform: scale(1);
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

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

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

.btn-secondary:hover {
    background: #25d366; /* Verde WhatsApp */
    color: white;
    transform: translateY(-2px);
    border-color: #25d366;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

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

.btn-outline:hover {
    background: #dc3545; /* Rojo PDF */
    color: white;
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

/* ===== AVAILABILITY BADGE ===== */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    margin-bottom: 1rem;
    animation: pulse-badge 2s ease-in-out infinite;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: blink-dot 1.5s ease-in-out infinite;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ===== WORK MODE INFO ===== */
.work-mode-info {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.work-mode-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.work-mode-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    animation: cardFloat 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
}

.floating-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

.card-1 {
    top: 10%;
    left: -10%;
    color: #f7df1e;
    animation-delay: 0s;
}

.card-2 {
    top: 20%;
    right: -20%;
    color: #61dafb;
    animation-delay: 1s;
}

.card-3 {
    bottom: 30%;
    left: -20%;
    color: #339933;
    animation-delay: 2s;
}

.card-4 {
    bottom: 10%;
    right: -10%;
    color: #3776ab;
    animation-delay: 3s;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

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

/* ===== SECTIONS GENERALES ===== */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--secondary-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-card {
    background: var(--card-bg);
    padding: var(--card-padding);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlights {
    margin: 1.5rem 0;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.highlight-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.highlight-item p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.about-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.about-visual {
    position: relative;
    overflow: hidden;
}

.visual-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.code-window {
    background: var(--accent-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    max-width: 100%;
    box-sizing: border-box;
}

.window-header {
    background: var(--secondary-bg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-buttons {
    display: flex;
    gap: 0.5rem;
}

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

.btn-close { background: #ff5f57; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #28ca42; }

.window-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.code-content {
    padding: 1.5rem;
    background: var(--accent-bg);
    overflow: visible;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: auto;
}

.code-content pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow: hidden;
}

#typing-code {
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    word-spacing: normal;
    letter-spacing: normal;
}

.experience-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.exp-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-normal);
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.exp-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.exp-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    min-width: 50px;
}

.exp-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.exp-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.exp-content span {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ===== TIMELINE STYLES ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    margin: 0 2rem;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    flex: 1;
    max-width: 350px;
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 3;
    border: 2px solid var(--primary-bg);
}

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--primary-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: var(--card-padding);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

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

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.service-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(145deg, var(--card-bg), var(--accent-bg));
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.service-features i {
    color: var(--success-color);
    font-size: 0.9rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: var(--secondary-bg);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-muted);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

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

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.project-link:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.project-content {
    padding: var(--card-padding);
}

.project-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.projects-footer {
    text-align: center;
    margin-top: 3rem;
}

/* ===== SKILLS SECTION ===== */
.skills {
    background: var(--primary-bg);
}

.skills-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: var(--card-padding);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.category-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

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

.skill-percentage {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-in-out;
}

.skills-visual {
    position: sticky;
    top: 2rem;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 300px;
}

.tech-icon {
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all var(--transition-normal);
    position: relative;
    cursor: pointer;
}

.tech-icon:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.tech-icon::before {
    content: attr(data-tech);
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.tech-icon:hover::before {
    opacity: 1;
}

.tech-icon:nth-child(1) { color: #e34f26; } /* HTML5 */
.tech-icon:nth-child(2) { color: #1572b6; } /* CSS3 */
.tech-icon:nth-child(3) { color: #f7df1e; } /* JavaScript */
.tech-icon:nth-child(4) { color: #61dafb; } /* React */
.tech-icon:nth-child(5) { color: #4fc08d; } /* Vue.js */
.tech-icon:nth-child(6) { color: #339933; } /* Node.js */
.tech-icon:nth-child(7) { color: #3776ab; } /* Python */
.tech-icon:nth-child(8) { color: #777bb4; } /* PHP */
.tech-icon:nth-child(9) { color: #f05032; } /* Git */
.tech-icon:nth-child(10) { color: #0db7ed; } /* Docker */
.tech-icon:nth-child(11) { color: #21759b; } /* WordPress */
.tech-icon:nth-child(12) { color: #ff9900; } /* AWS */

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--secondary-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-text p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.contact-methods {
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

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

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.method-content h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.method-content p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.method-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.method-content a:hover {
    color: var(--secondary-color);
}

.method-content span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 1.2rem;
}

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

.contact-form-container {
    background: var(--card-bg);
    padding: var(--card-padding);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    background: var(--accent-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Hover específico para GitHub */
.footer-social a[href*="github"]:hover {
    background: #333;
    border-color: #333;
    box-shadow: 0 8px 20px rgba(51, 51, 51, 0.4);
}

/* Hover específico para LinkedIn */
.footer-social a[href*="linkedin"]:hover {
    background: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4);
}

/* Hover específico para WhatsApp */
.footer-social a[href*="wa.me"]:hover,
.footer-social a[href*="whatsapp"]:hover {
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all var(--transition-normal);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .tech-icons {
        max-width: 100%;
        grid-template-columns: repeat(4, 1fr);
        margin: 0 auto;
    }
}

/* Asegurar que el menú esté visible en desktop */
@media (min-width: 769px) {
    .nav-menu {
        position: static !important;
        top: auto !important;
        flex-direction: row !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .nav-toggle {
        display: none !important;
    }
    
    .nav-overlay {
        display: none !important;
    }
}

/* Ajuste para pantallas medianas */
@media (max-width: 1200px) and (min-width: 769px) {
    .nav-menu {
        gap: 1rem !important;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 4rem 0;
        --card-padding: 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: -100vh;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        transition: top 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        height: auto;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        margin: 0;
        display: flex;
    }
    
    .nav-menu.active {
        top: 80px;
    }
    
    .nav-item {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
        text-align: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Language selector responsive */
    .language-selector {
        margin-left: 0.5rem;
        margin-right: 1rem;
    }
    
    .language-toggle {
        padding: 0.4rem 0.8rem;
        min-width: 60px;
    }
    
    .current-lang {
        font-size: 0.8rem;
    }
    
    .language-dropdown {
        right: -10px;
        min-width: 120px;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero greeting mobile spacing */
    .hero-greeting {
        margin-top: 3rem !important;
        margin-bottom: 1.2rem !important;
    }

    /* Mejoras adicionales para el menú móvil */
    .nav-link:hover {
        background: rgba(59, 130, 246, 0.1);
        border-radius: 8px;
    }
    
    .nav-link.active {
        background: var(--gradient-primary);
        border-radius: 8px;
        color: white;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .availability-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .work-mode-info {
        gap: 1rem;
        justify-content: center;
    }
    
    .work-mode-item {
        font-size: 0.85rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Timeline responsive */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 50px;
    }
    
    .timeline-item::before {
        left: 20px;
    }
    
    .timeline-date {
        margin: 0 1rem 0 0;
    }
    
    .timeline-content {
        max-width: 100%;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-categories {
        grid-template-columns: 1fr;
    }
    
    .tech-icons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .project-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .about-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-greeting {
        margin-top: 4rem !important;
        margin-bottom: 1rem !important;
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stat-item {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--border-radius);
    }
    
    .floating-card {
        position: static;
        margin: 0.5rem;
        animation: none;
    }
    
    .image-container {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .tech-icons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== UTILIDADES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { display: block !important; }

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-in-out;
}

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

.slide-in-right {
    animation: slideInRight 0.6s ease-in-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

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

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

/* ===== SELECCIÓN DE TEXTO ===== */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* ===== SERVICIOS - ESTILOS ADICIONALES ===== */
.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.service-features li i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0;
    font-family: var(--font-heading);
}

.work-process {
    margin-top: 6rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
}

.step-number {
    background: var(--gradient-primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.process-step h4 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.process-step p {
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

.services-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.services-cta h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.services-cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== PROYECTOS - ESTILOS ADICIONALES ===== */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

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

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

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.project-link:hover {
    transform: scale(1.1);
    background: var(--primary-color);
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.project-tech span:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    border-color: var(--primary-color);
}

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

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

/* ===== COLORES ESPECÍFICOS POR TECNOLOGÍA ===== */

/* JavaScript */
.project-tech span.tech-javascript:hover {
    background: #f7df1e !important;
    color: #000 !important;
    border-color: #f7df1e !important;
    box-shadow: 0 8px 25px rgba(247, 223, 30, 0.4) !important;
}

/* React */
.project-tech span.tech-react:hover {
    background: #61dafb !important;
    color: #000 !important;
    border-color: #61dafb !important;
    box-shadow: 0 8px 25px rgba(97, 218, 251, 0.4) !important;
}

/* HTML5 */
.project-tech span.tech-html:hover {
    background: #e34f26 !important;
    color: white !important;
    border-color: #e34f26 !important;
    box-shadow: 0 8px 25px rgba(227, 79, 38, 0.4) !important;
}

/* CSS3 */
.project-tech span.tech-css:hover {
    background: #1572b6 !important;
    color: white !important;
    border-color: #1572b6 !important;
    box-shadow: 0 8px 25px rgba(21, 114, 182, 0.4) !important;
}

/* Node.js */
.project-tech span.tech-node:hover {
    background: #68a063 !important;
    color: white !important;
    border-color: #68a063 !important;
    box-shadow: 0 8px 25px rgba(104, 160, 99, 0.4) !important;
}

/* Python */
.project-tech span.tech-python:hover {
    background: #3776ab !important;
    color: white !important;
    border-color: #3776ab !important;
    box-shadow: 0 8px 25px rgba(55, 118, 171, 0.4) !important;
}

/* MySQL / Database */
.project-tech span.tech-mysql:hover {
    background: #00758f !important;
    color: white !important;
    border-color: #00758f !important;
    box-shadow: 0 8px 25px rgba(0, 117, 143, 0.4) !important;
}

/* WordPress */
.project-tech span.tech-wordpress:hover {
    background: #21759b !important;
    color: white !important;
    border-color: #21759b !important;
    box-shadow: 0 8px 25px rgba(33, 117, 155, 0.4) !important;
}

/* WooCommerce */
.project-tech span.tech-woocommerce:hover {
    background: #96588a !important;
    color: white !important;
    border-color: #96588a !important;
    box-shadow: 0 8px 25px rgba(150, 88, 138, 0.4) !important;
}

/* PHP */
.project-tech span.tech-php:hover {
    background: #777bb4 !important;
    color: white !important;
    border-color: #777bb4 !important;
    box-shadow: 0 8px 25px rgba(119, 123, 180, 0.4) !important;
}

/* Git / GitHub */
.project-tech span.tech-git:hover,
.project-tech span.tech-github:hover {
    background: #f05032 !important;
    color: white !important;
    border-color: #f05032 !important;
    box-shadow: 0 8px 25px rgba(240, 80, 50, 0.4) !important;
}

/* Bootstrap */
.project-tech span.tech-bootstrap:hover {
    background: #7952b3 !important;
    color: white !important;
    border-color: #7952b3 !important;
    box-shadow: 0 8px 25px rgba(121, 82, 179, 0.4) !important;
}

/* Tailwind */
.project-tech span.tech-tailwind:hover {
    background: #06b6d4 !important;
    color: white !important;
    border-color: #06b6d4 !important;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4) !important;
}

/* MongoDB */
.project-tech span.tech-mongodb:hover {
    background: #47a248 !important;
    color: white !important;
    border-color: #47a248 !important;
    box-shadow: 0 8px 25px rgba(71, 162, 72, 0.4) !important;
}

/* Express */
.project-tech span.tech-express:hover {
    background: #000000 !important;
    color: white !important;
    border-color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3) !important;
}

/* TypeScript */
.project-tech span.tech-typescript:hover {
    background: #3178c6 !important;
    color: white !important;
    border-color: #3178c6 !important;
    box-shadow: 0 8px 25px rgba(49, 120, 198, 0.4) !important;
}

/* Vue.js */
.project-tech span.tech-vue:hover {
    background: #42b883 !important;
    color: white !important;
    border-color: #42b883 !important;
    box-shadow: 0 8px 25px rgba(66, 184, 131, 0.4) !important;
}

/* Docker */
.project-tech span.tech-docker:hover {
    background: #2496ed !important;
    color: white !important;
    border-color: #2496ed !important;
    box-shadow: 0 8px 25px rgba(36, 150, 237, 0.4) !important;
}

/* API REST */
.project-tech span.tech-api:hover {
    background: #ff6c37 !important;
    color: white !important;
    border-color: #ff6c37 !important;
    box-shadow: 0 8px 25px rgba(255, 108, 55, 0.4) !important;
}

/* SEO / Analytics */
.project-tech span.tech-seo:hover,
.project-tech span.tech-analytics:hover {
    background: #e37400 !important;
    color: white !important;
    border-color: #e37400 !important;
    box-shadow: 0 8px 25px rgba(227, 116, 0, 0.4) !important;
}

/* Responsive / PWA */
.project-tech span.tech-responsive:hover,
.project-tech span.tech-pwa:hover {
    background: #06d6a0 !important;
    color: white !important;
    border-color: #06d6a0 !important;
    box-shadow: 0 8px 25px rgba(6, 214, 160, 0.4) !important;
}

/* WhatsApp */
.project-tech span.tech-whatsapp:hover {
    background: #25d366 !important;
    color: white !important;
    border-color: #25d366 !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4) !important;
}

/* Firebase */
.project-tech span.tech-firebase:hover {
    background: #ffca28 !important;
    color: #000 !important;
    border-color: #ffca28 !important;
    box-shadow: 0 8px 25px rgba(255, 202, 40, 0.4) !important;
}

/* Sass / SCSS */
.project-tech span.tech-sass:hover {
    background: #cc6699 !important;
    color: white !important;
    border-color: #cc6699 !important;
    box-shadow: 0 8px 25px rgba(204, 102, 153, 0.4) !important;
}

/* Redux */
.project-tech span.tech-redux:hover {
    background: #764abc !important;
    color: white !important;
    border-color: #764abc !important;
    box-shadow: 0 8px 25px rgba(118, 74, 188, 0.4) !important;
}

/* jQuery */
.project-tech span.tech-jquery:hover {
    background: #0769ad !important;
    color: white !important;
    border-color: #0769ad !important;
    box-shadow: 0 8px 25px rgba(7, 105, 173, 0.4) !important;
}

/* Local Storage */
.project-tech span.tech-storage:hover {
    background: #8b5cf6 !important;
    color: white !important;
    border-color: #8b5cf6 !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4) !important;
}

/* Netlify */
.project-tech span.tech-netlify:hover {
    background: #00c7b7 !important;
    color: white !important;
    border-color: #00c7b7 !important;
    box-shadow: 0 8px 25px rgba(0, 199, 183, 0.4) !important;
}

/* Vercel */
.project-tech span.tech-vercel:hover {
    background: #000000 !important;
    color: white !important;
    border-color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3) !important;
}

/* GitHub Pages */
.project-tech span.tech-github-pages:hover {
    background: #222222 !important;
    color: white !important;
    border-color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3) !important;
}

/* Modal de Proyecto */
.project-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 2% auto;
    padding: 0;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1001;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== HABILIDADES - ESTILOS ADICIONALES ===== */
.tech-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-item i {
    transition: all 0.3s ease;
}

.tech-item:hover i {
    transform: scale(1.1);
}

.soft-skill-item {
    transition: all 0.3s ease;
}

.soft-skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skills-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-cta h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.skills-cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== CONTACTO - ESTILOS ADICIONALES ===== */
.quick-contact a:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Contact Item Hover Animations */
.contact-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-item:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.contact-item:hover div:first-child {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Specific colors for each contact method */
.contact-item:nth-child(1):hover div:first-child {
    background: linear-gradient(135deg, #ea4335, #c23321) !important; /* Email */
    box-shadow: 0 8px 25px rgba(234, 67, 53, 0.4);
}

.contact-item:nth-child(2):hover div:first-child {
    background: linear-gradient(135deg, #25d366, #128c7e) !important; /* WhatsApp */
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.contact-item:nth-child(3):hover div:first-child {
    background: linear-gradient(135deg, #0077b5, #005885) !important; /* LinkedIn */
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.contact-item:nth-child(4):hover div:first-child {
    background: linear-gradient(135deg, #333, #000) !important; /* GitHub */
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.4);
}

.contact-item div:first-child {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item > div {
    position: relative;
    z-index: 2;
}

/* Contact Options Modal */
.contact-options-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-options-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.contact-options-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.contact-options-modal h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.5rem;
}

.contact-options-modal p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.contact-buttons {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    text-align: left;
}

.contact-option:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.whatsapp-option:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.1);
}

.email-option:hover {
    border-color: #ea4335;
    background: rgba(234, 67, 53, 0.1);
}

.contact-option i {
    font-size: 2rem;
    color: var(--primary-color);
}

.whatsapp-option i {
    color: #25d366;
}

.email-option i {
    color: #ea4335;
}

.contact-option div {
    flex: 1;
}

.contact-option strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.contact-option span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        display: block !important;
    }
    
    .form-row .form-group {
        margin-bottom: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ===== SCREENSHOT MODAL ===== */
.screenshot-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: all 0.3s ease;
}

.screenshot-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.screenshot-modal .modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    width: 900px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.screenshot-modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.modal-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.modal-body {
    padding: 0;
}

.screenshot-container {
    position: relative;
    max-height: 60vh;
    overflow: hidden;
    background: var(--secondary-bg);
}

.screenshot-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.modal-actions {
    padding: 1.5rem 2rem;
    background: var(--secondary-bg);
    text-align: center;
}

.project-link.preview {
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-link.preview:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

/* Responsive Screenshot Modal */
@media (max-width: 768px) {
    .screenshot-modal .modal-content {
        width: 95vw;
        margin: 20px;
    }
    
    .modal-header {
        padding: 1rem 1.5rem 0.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-actions {
        padding: 1rem 1.5rem;
    }
    
    .screenshot-container {
        max-height: 50vh;
    }
}

/* ===== CAROUSEL STYLES ===== */
.screenshot-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: -50px;
}

.next-btn {
    right: -50px;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
    background: rgba(0, 0, 0, 0.7);
}

.image-counter {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.indicator.active {
    background: var(--primary);
    opacity: 1;
    transform: scale(1.2);
}

.indicator:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.screenshot-container {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.screenshot-container img {
    transition: opacity 0.3s ease;
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .prev-btn {
        left: -30px;
    }
    
    .next-btn {
        right: -30px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .prev-btn {
        left: 10px;
        top: 40%;
    }
    
    .next-btn {
        right: 10px;
        top: 40%;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        background: rgba(0, 0, 0, 0.8);
    }
}

/* ===== CONTACT PAGE RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-top: 2rem !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .contact-item {
        padding: 1rem !important;
        gap: 1rem !important;
    }
    
    .contact-item:hover {
        transform: translateY(-3px) scale(1.01) !important;
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15) !important;
    }
    
    .contact-item:hover div:first-child {
        transform: rotate(5deg) scale(1.05) !important;
    }
    
    .contact-item div:first-child {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
    
    .contact h3 {
        font-size: 1.5rem !important;
    }
    
    .contact .section-title {
        font-size: 2rem !important;
    }
    
    .contact section {
        padding: 100px 0 60px !important;
    }
}

@media (max-width: 480px) {
    .contact-grid {
        margin-top: 1.5rem !important;
        gap: 1.5rem !important;
    }
    
    .contact-item {
        padding: 0.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    .contact-item div:first-child {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
    }
    
    .contact h3 {
        font-size: 1.3rem !important;
    }
    
    .contact .section-title {
        font-size: 1.8rem !important;
    }
    
    .contact section {
        padding: 80px 0 40px !important;
    }
    
    .contact .container {
        padding: 0 1rem !important;
    }
}

/* ===== COMPREHENSIVE RESPONSIVE FIXES ===== */

/* About Page Responsive */
@media (max-width: 1200px) {
    .about-content {
        gap: 2.5rem !important;
    }
    
    .code-content pre {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    
    .code-window {
        max-width: 100% !important;
        margin: 0 auto 2rem !important;
    }
    
    .code-content {
        padding: 1rem !important;
    }
    
    .code-content pre {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        overflow-x: auto !important;
    }
    
    .about-visual {
        order: -1 !important;
    }
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .about-buttons {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .about-buttons .btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .highlight-item {
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .highlight-item i {
        font-size: 1.2rem !important;
        min-width: 30px !important;
    }
    
    .about {
        padding: 100px 0 60px !important;
    }
    
    /* Visual Section Mobile Fixes */
    .about-visual {
        order: -1 !important;
        margin-bottom: 2rem !important;
    }
    
    .visual-container {
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .code-window {
        max-width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
        font-size: 0.75rem !important;
    }
    
    .window-header {
        padding: 0.75rem !important;
        flex-wrap: wrap !important;
    }
    
    .window-title {
        font-size: 0.8rem !important;
    }
    
    .window-buttons span {
        width: 10px !important;
        height: 10px !important;
    }
    
    .code-content {
        padding: 1rem !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        height: auto !important;
    }
    
    .code-content pre {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        white-space: pre-wrap !important;
        word-break: break-word !important;
        overflow: hidden !important;
        max-width: 100% !important;
    }
    
    .experience-cards {
        gap: 0.75rem !important;
    }
    
    .exp-card {
        padding: 1rem !important;
        gap: 0.75rem !important;
        transform: none !important;
    }
    
    .exp-card:hover {
        transform: translateX(5px) !important;
    }
    
    .exp-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        min-width: 40px !important;
    }
    
    .exp-content h4 {
        font-size: 0.95rem !important;
        margin-bottom: 0.1rem !important;
    }
    
    .exp-content span {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 80px 0 40px !important;
    }
    
    .about-card {
        padding: 1.5rem !important;
    }
    
    .about-card h3 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }
    
    .about-card p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    .highlight-item {
        gap: 0.5rem !important;
        margin-bottom: 0.75rem !important;
        padding: 0.5rem !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border-radius: 8px !important;
    }
    
    .highlight-item h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.1rem !important;
    }
    
    .highlight-item p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    .highlight-item i {
        font-size: 1rem !important;
        min-width: 25px !important;
    }
    
    /* Ultra Mobile Code Window */
    .code-window {
        border-radius: 8px !important;
        margin-bottom: 1rem !important;
        transform: none !important; /* Disable any transforms */
        animation: none !important; /* Disable animations */
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .window-header {
        padding: 0.5rem !important;
    }
    
    .window-title {
        font-size: 0.7rem !important;
        display: none !important; /* Hide on very small screens */
    }
    
    .window-buttons {
        gap: 0.3rem !important;
    }
    
    .window-buttons span {
        width: 8px !important;
        height: 8px !important;
    }
    
    .code-content {
        padding: 0.75rem !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        height: auto !important;
    }
    
    .code-content pre {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
        transform: none !important; /* Disable any transforms */
        animation: none !important; /* Disable animations */
        white-space: pre-wrap !important;
        word-break: break-all !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Restore typewriter animation for mobile with optimized settings */
    .typing-animation {
        border-right: 2px solid var(--primary-color) !important;
        animation: blink 1s infinite !important;
    }
    
    #typing-code {
        white-space: pre-wrap !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        font-size: 0.6rem !important;
        line-height: 1.1 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .exp-card {
        padding: 0.75rem !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
        transform: none !important; /* Disable any transforms */
    }
    
    .exp-card:hover {
        transform: none !important; /* Disable hover transforms */
    }
    
    .exp-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
        transform: none !important; /* Disable any transforms */
    }
    
    .exp-content h4 {
        font-size: 0.85rem !important;
        white-space: normal !important; /* Allow text wrapping */
        text-overflow: initial !important;
    }
    
    .exp-content span {
        font-size: 0.75rem !important;
        white-space: normal !important; /* Allow text wrapping */
        text-overflow: initial !important;
        display: block !important;
        -webkit-line-clamp: none !important;
        line-clamp: none !important;
    }
    
    /* Disable all problematic animations */
    .about-visual * {
        animation: none !important;
        transform: none !important;
        transition: none !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .visual-container * {
        animation: none !important;
        transform: none !important;
        transition: none !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 400px) {
    .about {
        padding: 60px 0 30px !important;
    }
    
    .about-card {
        padding: 1rem !important;
        margin: 0 0.5rem !important;
    }
    
    .about-card h3 {
        font-size: 1.1rem !important;
        text-align: center !important;
    }
    
    .about-card p {
        font-size: 0.85rem !important;
        text-align: center !important;
    }
    
    .code-window {
        margin: 0 !important;
        border-radius: 6px !important;
    }
    
    .code-content {
        padding: 0.5rem !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .code-content pre {
        font-size: 0.6rem !important;
        line-height: 1.1 !important;
    }
    
    .exp-card {
        padding: 0.5rem !important;
        margin: 0 0.25rem !important;
    }
    
    .exp-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }
    
    .exp-content h4 {
        font-size: 0.8rem !important;
    }
    
    .exp-content span {
        font-size: 0.7rem !important;
    }
    
    .highlight-item {
        flex-direction: column !important;
        text-align: center !important;
        padding: 0.75rem !important;
    }
    
    .highlight-item i {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .about-buttons {
        padding: 0 1rem !important;
    }
    
    .about-buttons .btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
}

/* Services Page Responsive */
@media (max-width: 768px) {
    .services {
        padding: 100px 0 60px !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .service-card {
        text-align: center !important;
    }
    
    .service-card .btn {
        margin-top: 1rem !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .services {
        padding: 80px 0 40px !important;
    }
    
    .service-card {
        padding: 1.5rem !important;
    }
    
    .service-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
}

/* Projects Page Responsive */
@media (max-width: 768px) {
    .projects {
        padding: 100px 0 60px !important;
    }
    
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .filter-buttons {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.5rem !important;
    }
    
    .filter-btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .projects {
        padding: 80px 0 40px !important;
    }
    
    .project-card {
        margin-bottom: 1rem !important;
    }
    
    .project-tech {
        gap: 0.4rem !important;
    }
    
    .project-tech span {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    
    .project-tech span:hover {
        transform: translateY(-1px) scale(1.03) !important;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25) !important;
    }
}

/* Skills Page Responsive */
@media (max-width: 768px) {
    .skills {
        padding: 100px 0 60px !important;
    }
    
    .skills-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .skill-category {
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .skills {
        padding: 80px 0 40px !important;
    }
    
    .skill-item {
        margin-bottom: 1rem !important;
    }
    
    .skill-level {
        font-size: 0.85rem !important;
    }
}

/* General Section Descriptions Responsive */
@media (max-width: 768px) {
    .section-header p[style*="max-width"] {
        max-width: 100% !important;
        font-size: 1rem !important;
        margin: 1.5rem auto 0 !important;
    }
}

@media (max-width: 480px) {
    .section-header p[style*="max-width"] {
        font-size: 0.95rem !important;
        margin: 1rem auto 0 !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .section-subtitle {
        font-size: 0.9rem !important;
    }
}

/* Navigation Responsive Improvements */
@media (max-width: 768px) {
    .nav-menu {
        padding: 2rem 1rem !important;
    }
    
    .nav-item {
        margin: 0.5rem 0 !important;
    }
    
    .nav-link {
        font-size: 1.1rem !important;
        padding: 0.75rem 0 !important;
    }
    
    .language-selector {
        margin-top: 1rem !important;
    }
}

/* Button Responsive Improvements */
@media (max-width: 480px) {
    .btn {
        font-size: 0.95rem !important;
        padding: 0.8rem 1.5rem !important;
    }
    
    .btn i {
        font-size: 0.9rem !important;
    }
}

/* Section Description Responsive Class */
.section-description {
    max-width: 600px;
    margin: 2rem auto 0;
    color: var(--text-muted);
    text-align: center;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .section-description {
        max-width: 100% !important;
        font-size: 1rem !important;
        margin: 1.5rem auto 0 !important;
    }
}

@media (max-width: 480px) {
    .section-description {
        font-size: 0.95rem !important;
        margin: 1rem auto 0 !important;
    }
}

/* ===== FLOATING CONTACT BUTTON ===== */
.floating-contact-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transition: all var(--transition-normal);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-float 2s ease-in-out infinite;
    opacity: 1;
    visibility: visible;
}

.floating-contact-btn.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.floating-contact-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

.floating-contact-btn i {
    animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes pulse-float {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(59, 130, 246, 0.6);
    }
}

@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* ===== CONTACT MODAL ===== */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.contact-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    padding: 2rem;
}

.contact-modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.contact-modal.show .contact-modal-content {
    transform: scale(1);
}

.contact-modal .modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.contact-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.contact-modal .modal-header {
    padding: 2.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-modal .modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.contact-modal .modal-body {
    padding: 2rem 2.5rem 2.5rem;
}

.contact-modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-modal .form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-modal .form-group input,
.contact-modal .form-group select,
.contact-modal .form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

.contact-modal .form-group input:focus,
.contact-modal .form-group select:focus,
.contact-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-modal .form-group select {
    cursor: pointer;
}

.contact-modal .form-group select option {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 0.5rem;
}

.contact-modal .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .contact-modal.show {
        padding: 1rem;
    }
    
    .contact-modal-content {
        max-height: 95vh;
    }
    
    .contact-modal .modal-header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .contact-modal .modal-header h3 {
        font-size: 1.5rem;
    }
    
    .contact-modal .modal-body {
        padding: 1.5rem;
    }
    
    .contact-modal .form-row {
        grid-template-columns: 1fr !important;
    }
    
    .floating-contact-btn {
        bottom: 2rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .contact-modal .modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .floating-contact-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ===== SECRET DASHBOARD BUTTON ===== */
.secret-dashboard-btn {
    position: relative;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: rgba(59, 130, 246, 0.4);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.4;
    transition: all 0.4s ease;
    z-index: 1000;
    cursor: pointer;
    margin-left: 0.5rem;
}

.secret-dashboard-btn:hover {
    opacity: 1;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.secret-dashboard-btn i {
    transition: transform 0.3s ease;
}

.secret-dashboard-btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Footer needs relative positioning */
.footer {
    position: relative;
}

/* Ajustar footer-social para incluir el botón del dashboard */
.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .secret-dashboard-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        opacity: 0.35;
    }
}
