/* ================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ================================ */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff6b6b;
    --accent-color: #00ffe7;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    --border-color: #333333;
    
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #0099cc 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #cc4444 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #ffaa00 100%);
    --gradient-bg: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-md: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;
    --font-4xl: 2.5rem;
    --font-5xl: 3rem;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    
    --z-nav: 100;
    --z-dropdown: 200;
    --z-modal: 300;
}

/* Light Theme Variables - REDISEÑADO */
[data-theme="light"] {
    --primary-color: #0066ff;
    --secondary-color: #ff3366;
    --accent-color: #00d9ff;
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef2f7;
    --text-primary: #1a1d29;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #cbd5e0;
    
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    --gradient-secondary: linear-gradient(135deg, #ff3366 0%, #cc2952 100%);
    --gradient-accent: linear-gradient(135deg, #00d9ff 0%, #00b8e6 100%);
    --gradient-bg: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    
    --shadow-sm: 0 2px 8px rgba(0, 102, 255, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 102, 255, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 102, 255, 0.16);
    --shadow-xl: 0 12px 32px rgba(0, 102, 255, 0.2);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Performance optimizations */
.section {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

img, iframe, video {
    content-visibility: auto;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Optimize will-change usage */
.skill-card-modern:hover,
.about-card:hover,
.btn:hover,
.btn-cv:hover {
    will-change: transform;
}

.skill-card-modern,
.about-card,
.btn,
.btn-cv {
    will-change: auto;
}

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

/* ================================
   NAVIGATION
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: var(--z-nav);
    transition: all var(--transition-normal);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 102, 255, 0.08);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

[data-theme="light"] .hero-background {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 50%, #e6f0ff 100%);
}

[data-theme="light"] .shape {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 217, 255, 0.15));
    opacity: 0.3;
}

[data-theme="light"] .profile-placeholder {
    background: linear-gradient(135deg, #0066ff, #00d9ff);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.3), 
                0 0 60px rgba(0, 217, 255, 0.2);
}

[data-theme="light"] .skill-badge {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 217, 255, 0.08));
    border-color: rgba(0, 102, 255, 0.25);
    color: var(--text-primary);
}

[data-theme="light"] .skill-badge:hover {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 217, 255, 0.15));
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo .logo-text {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link i {
    font-size: 1.1em;
    transition: transform var(--transition-fast);
}

.nav-link:hover i {
    transform: scale(1.2);
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Language Toggle Button */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.lang-toggle:hover {
    background: rgba(0, 255, 231, 0.1);
    border-color: var(--accent-color);
}

.lang-es,
.lang-en {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
}

.lang-es.active,
.lang-en.active {
    color: var(--accent-color);
    background: rgba(0, 255, 231, 0.15);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity var(--transition-fast);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all var(--transition-fast);
}

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

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-bg);
    z-index: 0;
}

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

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

.shape-1 { width: 100px; height: 100px; top: 20%; left: 10%; animation-delay: 0s; }
.shape-2 { width: 150px; height: 150px; top: 60%; right: 15%; animation-delay: 5s; }
.shape-3 { width: 80px; height: 80px; bottom: 30%; left: 70%; animation-delay: 10s; }
.shape-4 { width: 120px; height: 120px; top: 10%; right: 40%; animation-delay: 15s; }

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
    min-height: 80vh;
}

.hero-title {
    font-size: clamp(var(--font-3xl), 4vw, var(--font-5xl));
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
    overflow: hidden;
}

.hero-name,
.animated-gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInUp 1s ease 0.5s both;
}

.hero-role {
    color: var(--text-secondary);
    font-size: var(--font-2xl);
    font-weight: 400;
    animation: slideInUp 1s ease 1s both;
}

.hero-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    animation: fadeInUp 1s ease 2.15s both;
}

.hero-social-link {
    min-width: 155px;
    justify-content: center;
}

.typewriter::after {
    content: '|';
    animation: blink 1s infinite;
}

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

.hero-description {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 620px;
    animation: slideInUp 1s ease 1.5s both;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    animation: slideInUp 1s ease 2s both;
}

.hero-cv-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    animation: fadeInUp 1s ease 2.3s both;
}

.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 255, 231, 0.05);
    border: 1.5px solid rgba(0, 255, 231, 0.25);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.btn-cv::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.btn-cv:hover::after {
    transform: scaleX(1);
}

.btn-cv:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    background: rgba(0, 255, 231, 0.1);
    box-shadow: 0 4px 12px rgba(0, 255, 231, 0.25);
}

.btn-cv:active {
    transform: translateY(0);
}

.btn-cv i:first-child {
    font-size: 1rem;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.btn-cv:hover i:first-child {
    opacity: 1;
    transform: scale(1.1);
}

.btn-cv span {
    font-size: 0.875rem;
}

.btn-cv i:last-child {
    font-size: 0.875rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.btn-cv:hover i:last-child {
    opacity: 1;
    transform: translateX(2px);
}

[data-theme="light"] .btn-cv {
    background: rgba(0, 102, 255, 0.06);
    border-color: rgba(0, 102, 255, 0.3);
}

[data-theme="light"] .btn-cv:hover {
    background: rgba(0, 102, 255, 0.12);
    border-color: #0066ff;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.25);
}

.btn,
.cyberpunk-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-md);
    transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Enhanced button visuals */
.btn {
    background: linear-gradient(90deg, rgba(0,212,255,0.12), rgba(0,150,200,0.06));
    border: 1.5px solid rgba(0,255,231,0.12);
    color: var(--text-primary);
    padding: 0.9rem 1.6rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,212,255,0.14), 0 6px 20px rgba(0,0,0,0.3);
}

.btn i,
.btn-cv i {
    margin-right: 0.6rem;
    font-size: 1.05rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.btn-cv {
    background: transparent;
    border: 1.5px solid rgba(0,255,231,0.14);
    color: var(--text-primary);
}

.btn-cv:hover {
    background: rgba(0,255,231,0.06);
    border-color: rgba(0,255,231,0.36);
    box-shadow: 0 8px 30px rgba(0,212,255,0.07);
}

/* Focus styles for accessibility */
.btn:focus-visible,
.btn-cv:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid rgba(0,212,255,0.14);
    outline-offset: 3px;
}

/* Navigation icons added by script */
.nav-link .nav-link-icon {
    margin-right: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover .nav-link-icon,
.nav-link.active .nav-link-icon {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.full-width {
    width: 100%;
    justify-content: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease 1s both;
}

.profile-card {
    background: linear-gradient(135deg, rgba(0, 18, 35, 0.85), rgba(18, 10, 35, 0.85));
    border: 1.5px solid rgba(0, 255, 231, 0.18);
    border-radius: calc(var(--radius-xl) + 4px);
    padding: calc(var(--space-xl) - 0.25rem);
    text-align: center;
    position: relative;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform-style: preserve-3d;
    isi in out: perspective(1000px) rotateX(4deg) rotateY(-4deg) translateZ(30px);
    transition: isi in out 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    will-change: transform, box-shadow;
    overflow: hidden;
}

.profile-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 231, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.6s ease, left 0.6s ease;
    pointer-events: none;
}

.profile-card:hover {
    isi in out: perspective(1000px) rotateX(6deg) rotateY(-6deg) translateZ(48px);
    box-shadow: 0 22px 50px rgba(0, 212, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 255, 231, 0.36);
}

.profile-card:hover::after {
    left: 100%;
    opacity: 1;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 231, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-image {
    position: relative;
    margin-bottom: var(--space-lg);
}

.profile-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    position: relative;
    box-shadow: 0 0 36px rgba(0, 212, 255, 0.34), inset 0 0 18px rgba(255, 255, 255, 0.14);
    transition: isi in out 0.35s ease, box-shadow 0.35s ease;
}

.profile-placeholder::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 255, 231, 0.3), rgba(138, 43, 226, 0.3));
    opacity: 0;
    transition: opacity 0.35s ease;
    animation: spin 8s linear infinite;
}

.profile-card:hover .profile-placeholder {
    box-shadow: 0 0 56px rgba(0, 212, 255, 0.46), inset 0 0 26px rgba(255, 255, 255, 0.22);
    isi in out: scale(1.045);
}

.profile-card:hover .profile-placeholder::before {
    opacity: 1;
}

@keyframes spin {
    from { isi in out: rotate(0deg); }
    to { isi in out: rotate(360deg); }
}

.profile-initials {
    font-size: var(--font-4xl);
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.profile-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: var(--font-sm);
    color: rgba(255, 255, 255, 0.92); /* más contraste para legibilidad */
    animation: slideInUp 0.48s ease 0.18s both;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00ff88;
    animation: pulse 2.2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.75);
}

.profile-skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
    margin-top: var(--space-md);
    animation: slideInUp 0.6s ease 0.5s both;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--space-xs) / 1.2);
    padding: 0.45rem 0.85rem;
    background: linear-gradient(135deg, rgba(0, 255, 231, 0.08), rgba(138, 43, 226, 0.06));
    border: 1.25px solid rgba(0, 255, 231, 0.18);
    border-radius: calc(var(--radius-md) - 2px);
    font-size: var(--font-sm);
    color: var(--text-secondary);
    transition: isi in out 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInBadge 0.45s ease-out backwards;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.skill-badge:nth-child(1) { animation-delay: 0.1s; }
.skill-badge:nth-child(2) { animation-delay: 0.2s; }
.skill-badge:nth-child(3) { animation-delay: 0.3s; }
.skill-badge:nth-child(4) { animation-delay: 0.4s; }
.skill-badge:nth-child(5) { animation-delay: 0.5s; }
.skill-badge:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInBadge {
    from {
        opacity: 0;
        isi in out: translateY(10px) scale(0.9);
    }
    to {
        opacity: 1;
        isi in out: translateY(0) scale(1);
    }
}

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

.skill-badge:hover {
    border-color: rgba(0, 255, 231, 0.44);
    color: var(--primary-color);
    isi in out: translateY(-3px) scale(1.04);
    box-shadow: 0 6px 18px rgba(0, 212, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(0, 255, 231, 0.12), rgba(138, 43, 226, 0.12));
}

/* Make badges keyboard-accessible */
.skill-badge:focus-visible {
    outline: 3px solid rgba(0, 212, 255, 0.18);
    outline-offset: 3px;
    isi in out: translateY(-2px) scale(1.02);
}

/* Make profile-card focusable for keyboard users */
.profile-card:focus-within,
.profile-card:focus {
    border-color: rgba(0, 255, 231, 0.4);
    box-shadow: 0 18px 44px rgba(0, 212, 255, 0.14);
}

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

.skill-badge i {
    font-size: 1.1em;
    transition: isi in out 0.25s ease;
}

.skill-badge:hover i {
    isi in out: rotate(360deg) scale(1.2);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    isi in out: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: var(--font-sm);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: var(--gradient-primary);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { isi in out: scale(1); }
    50% { isi in out: scale(1.1); }
}

@keyframes loadingProgress {
    0%, 100% { isi in out: translateX(-100%); }
    50% { isi in out: translateX(100%); }
}

@keyframes slideInUp {
    from { opacity: 0; isi in out: translateY(50px); }
    to { opacity: 1; isi in out: translateY(0); }
}

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

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

@keyframes scrollLine {
    0% { isi in out: translateY(-100%); }
    100% { isi in out: translateY(100%); }
}

/* ================================
   SECTIONS
   ================================ */
.section {
    padding: var(--space-xxl) 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-title {
    font-size: clamp(var(--font-2xl), 3vw, var(--font-4xl));
    font-weight: 700;
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ================================
   ABOUT SECTION
   ================================ */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xxl);
    align-items: start;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    position: relative;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 231, 0.1), rgba(138, 43, 226, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

[data-theme="light"] .about-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 102, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.08);
}

[data-theme="light"] .about-card:hover {
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.15);
}

[data-theme="light"] .stat-card {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 217, 255, 0.05));
    border: 2px solid rgba(0, 102, 255, 0.15);
}

[data-theme="light"] .stat-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
}

.card-icon {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-md);
    color: var(--accent-color);
}

.about-card h3 {
    font-size: var(--font-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.strengths-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.strengths-list li {
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: var(--space-md);
    position: relative;
}

.strengths-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.languages {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

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

.language-level {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    font-weight: 600;
}

.language-level.native {
    background: var(--gradient-primary);
    color: white;
}

.language-level.advanced {
    background: var(--gradient-secondary);
    color: white;
}

.about-stats {
    display: grid;
    gap: var(--space-lg);
}

.stat-card {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 231, 0.1), rgba(138, 43, 226, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: var(--font-4xl);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

/* About Section Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* About Card - Tarjeta simple y limpia */
.about-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 255, 231, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.about-card:hover::before {
    opacity: 1;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
}

.about-card h3 {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: var(--font-sm);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: var(--primary-color);
    display: inline-block;
    transition: transform 0.3s ease;
}

.about-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-card .strengths-list {
    margin: 0;
}

.about-card .languages {
    margin: 0;
}

[data-theme="light"] .about-column {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 102, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.08);
}

[data-theme="light"] .about-column:hover {
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.15);
}

/* ================================
   SKILLS SECTION
   ================================ */
.skills-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.skill-card-modern {
    background: linear-gradient(135deg, rgba(0, 255, 231, 0.03), rgba(138, 43, 226, 0.03));
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 231, 0.15);
    border-radius: 18px;
    padding: 2rem;
    transform-style: preserve-3d;
    transition: isi in out 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.skill-card-modern::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(0, 255, 231, 0.3) 0%, rgba(138, 43, 226, 0.3) 100%);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.skill-card-modern:hover {
    isi in out: translateY(-6px) scale(1.02);
    border-color: rgba(0, 255, 231, 0.4);
    box-shadow: 0 15px 50px rgba(0, 255, 231, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.skill-card-modern:hover::before {
    opacity: 0.5;
}

[data-theme="light"] .skill-card-modern {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 255, 0.95));
    border: 2px solid rgba(0, 102, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.08);
}

[data-theme="light"] .skill-card-modern::before {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.25), rgba(0, 217, 255, 0.25));
}

[data-theme="light"] .skill-card-modern:hover {
    border-color: rgba(0, 102, 255, 0.35);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.18);
}

[data-theme="light"] .skill-item-modern {
    color: var(--text-primary);
}

[data-theme="light"] .skill-item-modern i {
    color: var(--primary-color);
}

.skill-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 255, 231, 0.2);
}

.skill-list-modern {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-item-modern {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 0.5rem 0 0.5rem 0.5rem;
    transition: all 0.3s ease;
}

.skill-item-modern i {
    color: var(--accent-color);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.skill-item-modern:hover {
    color: var(--text-primary);
    padding-left: 1rem;
}

.skill-item-modern:hover i {
    transform: translateX(4px);
}

.soft-skills-section-modern {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(0, 255, 231, 0.1);
}

.soft-skills-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    text-isi in out: uppercase;
    letter-spacing: 0.05em;
}

.soft-skills-title .category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 231, 0.15), rgba(138, 43, 226, 0.15));
    border: 2px solid rgba(0, 255, 231, 0.2);
    border-radius: 16px;
    font-size: 1.8rem;
    color: var(--accent-color);
    transition: isi in out 0.25s ease;
}

.soft-skills-title:hover .category-icon {
    isi in out: scale(1.1);
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
}

.soft-skill-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 255, 231, 0.03), rgba(138, 43, 226, 0.02));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 231, 0.1);
    border-radius: 16px;
    transition: isi in out 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    transform-style: preserve-3d;
    position: relative;
}

.soft-skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 255, 231, 0.05), transparent);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.soft-skill-card:hover {
    isi in out: translateY(-4px) scale(1.05);
    border-color: rgba(0, 255, 231, 0.3);
    box-shadow: 0 12px 40px rgba(0, 255, 231, 0.2);
}

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

.soft-skill-icon {
    font-size: var(--font-4xl);
    margin-bottom: var(--space-md);
    color: var(--accent-color);
    transition: isi in out 0.25s ease;
}

.soft-skill-card:hover .soft-skill-icon {
    isi in out: scale(1.2) rotateY(10deg);
}

.soft-skill-card h4 {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
}

.soft-skill-card:hover h4 {
    color: var(--accent-color);
}

.soft-skill-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.soft-skill-card:hover p {
    color: var(--text-primary);
}

[data-theme="light"] .soft-skill-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 255, 0.95));
    border: 2px solid rgba(0, 102, 255, 0.12);
}

[data-theme="light"] .soft-skill-card:hover {
    border-color: rgba(0, 102, 255, 0.35);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.15);
}

[data-theme="light"] .soft-skill-icon {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 217, 255, 0.1));
    color: var(--primary-color);
}

[data-theme="light"] .soft-skill-card:hover .soft-skill-icon {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 217, 255, 0.2));
}

/* ================================
   CONTACT SECTION
   ================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-card {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    position: relative;
}

.contact-icon {
    font-size: var(--font-4xl);
    margin-bottom: var(--space-md);
    color: var(--accent-color);
}

.contact-card h3 {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.contact-card a,
.contact-card span {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.contact-form {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--font-md);
    transition: all var(--transition-fast);
}

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

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

.contact-form .btn {
    margin-top: var(--space-md);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--bg-primary);
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.contact-form .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 255, 231, 0.5), 0 0 30px rgba(0, 212, 255, 0.3);
}

.contact-form .btn:active {
    transform: translateY(-1px) scale(1.02);
}

.contact-form .btn .btn-icon {
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.contact-form .btn:hover .btn-icon {
    transform: translateX(5px) rotate(15deg);
    animation: paperPlane 0.6s ease infinite;
}

@keyframes paperPlane {
    0%, 100% { transform: translateX(5px) rotate(15deg); }
    50% { transform: translateX(8px) rotate(20deg); }
}

[data-theme="light"] .contact-form .btn {
    background: linear-gradient(135deg, #0066ff 0%, #00b8e6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

[data-theme="light"] .contact-form .btn:hover {
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4), 0 0 30px rgba(0, 102, 255, 0.2);
}

[data-theme="light"] .contact-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 102, 255, 0.12);
}

[data-theme="light"] .contact-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.12);
}

[data-theme="light"] .contact-form {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 102, 255, 0.12);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(246, 250, 255, 0.7);
    border: 2px solid rgba(0, 102, 255, 0.15);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-xl) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer-text p {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-sm);
    transition: color var(--transition-fast);
}

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

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-social-link {
    padding: 0.7rem 1rem;
    min-width: 140px;
    justify-content: center;
    font-size: 0.8rem;
}

.footer-social-link i {
    font-size: 0.95rem;
}

/* ================================
   BACK TO TOP
   ================================ */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-nav);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    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: var(--space-xl);
    }
    
    .hero-visual {
        order: -1;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-cv-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-cv {
        flex: 1 1 auto;
        min-width: 150px;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-top: none;
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: 99;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-sm);
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-cv-buttons {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .btn-cv {
        width: 100%;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .skills-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .experience-layout {
        gap: var(--space-lg);
    }
    
    .experience-main-card,
    .recommendation-card-vertical {
        padding: var(--space-lg);
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .recommendation-card-vertical .recommendation-btn {
        width: 100%;
        align-self: stretch;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container,
    .container {
        padding: 0 var(--space-sm);
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .profile-placeholder {
        width: 150px;
        height: 150px;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .profile-initials {
        font-size: var(--font-3xl);
    }
    
    .profile-card {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .experience-main-card,
    .recommendation-card-vertical {
        padding: var(--space-md);
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .recommendation-card-vertical .recommendation-header i {
        font-size: var(--font-xl);
    }
    
    .recommendation-card-vertical .recommendation-header h4 {
        font-size: var(--font-lg);
    }
    
    .recommendation-card-vertical .recommendation-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-sm);
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .experience-description {
        font-size: var(--font-sm);
        padding: var(--space-sm);
    }
    
    .soft-skills-grid {
        grid-template-columns: 1fr;
    }

    .hero-social-links,
    .footer-social-links {
        width: 100%;
    }

    .hero-social-link,
    .footer-social-link {
        width: 100%;
    }
}

/* ================================
   UTILITIES
   ================================ */
.hidden { display: none !important; }
.hidden-field { 
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}
.languages-card {
    margin-top: 1.5rem;
}
.visible { display: block !important; }

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeInUp {
    from { opacity: 0; isi in out: translateY(30px); }
    to { opacity: 1; isi in out: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; isi in out: translateX(-30px); }
    to { opacity: 1; isi in out: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; isi in out: translateX(30px); }
    to { opacity: 1; isi in out: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; isi in out: scale(0.9); }
    to { opacity: 1; isi in out: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; isi in out: translateY(20px); }
    to { opacity: 1; isi in out: translateY(0); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 30px rgba(0, 212, 255, 0.4); }
}

@keyframes bounceIn {
    0% { opacity: 0; isi in out: scale(0.3); }
    50% { opacity: 1; isi in out: scale(1.05); }
    70% { isi in out: scale(0.9); }
    100% { opacity: 1; isi in out: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Navigation Animations */
.navbar {
    animation: slideUp 0.8s ease-out;
}

.nav-logo {
    animation: fadeInLeft 0.6s ease-out 0.2s both;
}

.nav-menu {
    animation: fadeInRight 0.6s ease-out 0.4s both;
}

.nav-actions {
    animation: scaleIn 0.6s ease-out 0.6s both;
}

/* Hero Section Animations */
.hero-section {
    animation: fadeInUp 1s ease-out;
}

.hero-text {
    animation: fadeInLeft 0.8s ease-out 0.3s both;
}

.hero-visual {
    animation: fadeInRight 0.8s ease-out 0.5s both;
}

.hero-name {
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color), var(--accent-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite, fadeInUp 1s ease 0.5s both;
}

.hero-description {
    animation: fadeInUp 0.8s ease-out 1s both;
}

.hero-actions {
    animation: bounceIn 0.8s ease-out 1.5s both;
}

/* Section Headers */
.section-header {
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    position: relative;
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    animation: slideInFromLeft 0.8s ease-out 0.5s both;
}

.section-subtitle {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* About Section */
.about-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.about-card {
    animation: slideUp 0.6s ease-out backwards;
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.3s; }
.about-card:nth-child(3) { animation-delay: 0.5s; }

.stat-card {
    animation: scaleIn 0.6s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }

/* Experience Section */
#experiencia .about-card {
    animation: fadeInLeft 0.6s ease-out 0.1s both;
}

/* Experience Layout - Vertical Design */
.experience-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.experience-main-card {
    background: var(--bg-secondary);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.experience-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

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

[data-theme="light"] .experience-main-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
    border: 2px solid rgba(0, 102, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.08);
}

[data-theme="light"] .experience-main-card:hover {
    border-color: rgba(0, 102, 255, 0.35);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.15);
}

.experience-main-card h3 {
    font-size: var(--font-xl);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

/* Experience Description */
.experience-description {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--radius-md);
    line-height: 1.8;
    font-size: var(--font-md);
    color: var(--text-secondary);
}

[data-theme="light"] .experience-description {
    background: rgba(0, 102, 255, 0.04);
    border-left-color: var(--primary-color);
    color: var(--text-secondary);
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: var(--space-lg);
}

.experience-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(0, 255, 231, 0.22);
    border-radius: 999px;
    color: var(--text-primary);
    background: rgba(0, 255, 231, 0.06);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

[data-theme="light"] .experience-tag {
    background: rgba(0, 102, 255, 0.06);
    border-color: rgba(0, 102, 255, 0.18);
    color: var(--text-primary);
}

[data-theme="light"] .section-title {
    background: linear-gradient(135deg, #0066ff, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero-name {
    background: linear-gradient(135deg, #0066ff 0%, #00d9ff 50%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
}

.strengths-list li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.strength-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Recommendation Card - Vertical Compact Design */
.recommendation-card-vertical {
    background: var(--bg-secondary);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.recommendation-card-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    opacity: 1;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.recommendation-card-vertical:hover::before {
    opacity: 0.5;
}

.recommendation-card-vertical:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

[data-theme="light"] .recommendation-card-vertical {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
    border: 2px solid rgba(0, 102, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.08);
}

[data-theme="light"] .recommendation-card-vertical::before {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 217, 255, 0.08));
}

[data-theme="light"] .recommendation-card-vertical:hover {
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.18);
}

.recommendation-card-vertical .recommendation-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: relative;
    z-index: 1;
}

.recommendation-card-vertical .recommendation-header i {
    font-size: var(--font-2xl);
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

.recommendation-card-vertical .recommendation-header h4 {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.recommendation-card-vertical .recommendation-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
    font-size: var(--font-md);
}

.recommendation-card-vertical .recommendation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
    align-self: flex-start;
}

.recommendation-card-vertical .recommendation-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.recommendation-card-vertical .recommendation-btn:hover::before {
    width: 300px;
    height: 300px;
}

.recommendation-card-vertical .recommendation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.recommendation-card-vertical .recommendation-btn i {
    font-size: var(--font-lg);
    transition: transform var(--transition-normal);
}

.recommendation-card-vertical .recommendation-btn:hover i {
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
    }
    50% {
        transform: scale(1);
        opacity: 0.9;
    }
    75% {
        box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Skills Section */
.skill-card-modern {
    animation: slideUp 0.6s ease-out backwards;
}

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

.skill-item-modern {
    transition: all var(--transition-fast);
    animation: fadeInUp 0.4s ease-out backwards;
}

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

.soft-skills-section-modern {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.soft-skill-card {
    animation: bounceIn 0.6s ease-out backwards;
}

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

/* Contact Section */
.contact-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-info {
    animation: fadeInLeft 0.6s ease-out 0.1s both;
}

.contact-form {
    animation: fadeInRight 0.6s ease-out 0.3s both;
}

.contact-card {
    animation: slideUp 0.6s ease-out backwards;
}

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

/* Form Animations */
.form-group {
    animation: fadeInUp 0.6s ease-out backwards;
}

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

.form-group input:focus,
.form-group textarea:focus {
    animation: glow 1s ease-in-out;
}

/* Footer */
.footer {
    animation: slideUp 0.8s ease-out 0.1s both;
}

.footer-content {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Interactive Elements - OPTIMIZED */
.btn:hover {
    isi in out: scale(1.08);
}

.skill-badge:hover {
    isi in out: translateY(-2px);
}

.nav-link:hover {
    color: var(--accent-color);
}

.language-item:hover {
    isi in out: scale(1.05);
}

.strengths-list li:hover {
    animation: slideInFromLeft 0.3s ease-out;
}

/* Scroll-triggered animations */
@keyframes revealUp {
    from { opacity: 0; isi in out: translateY(50px); }
    to { opacity: 1; isi in out: translateY(0); }
}

@keyframes revealLeft {
    from { opacity: 0; isi in out: translateX(-50px); }
    to { opacity: 1; isi in out: translateX(0); }
}

@keyframes revealRight {
    from { opacity: 0; isi in out: translateX(50px); }
    to { opacity: 1; isi in out: translateX(0); }
}

.scroll-reveal {
    opacity: 0;
    isi in out: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    isi in out: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    isi in out: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    isi in out: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    isi in out: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    isi in out: translateX(0);
}

/* Performance optimizations */
.about-card,
.stat-card,
.skill-card-modern,
.soft-skill-card,
.contact-card,
.profile-card {
    will-change: transform;
}

.skill-badge,
.btn,
.nav-link {
    will-change: transform, box-shadow;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-name {
        animation: none !important;
    }
    
    .profile-placeholder,
    .status-dot {
        animation: none !important;
    }
}
