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

:root {
    /* Colores profesionales más sofisticados */
    --primary-color: #06b6d4;
    --primary-light: #22d3ee;
    --primary-dark: #0891b2;
    --secondary-color: #8b5cf6;
    --secondary-light: #a78bfa;
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;

    /* Backgrounds profesionales */
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: rgba(30, 41, 59, 0.5);
    --card-bg-hover: rgba(30, 41, 59, 0.8);

    /* Text colors */
    --text-color: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;

    /* Borders */
    --border-color: rgba(71, 85, 105, 0.3);
    --border-hover: rgba(6, 182, 212, 0.5);

    /* Gradients modernos */
    --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-card: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);

    /* Shadows profesionales */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 32px 64px rgba(0, 0, 0, 0.5);
    --glow-primary: 0 0 40px rgba(6, 182, 212, 0.4);
    --glow-secondary: 0 0 40px rgba(139, 92, 246, 0.4);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--darker-bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Prevenir overflow de texto */
p,
h1,
h2,
h3,
h4,
h5,
h6,
span {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Prevenir overflow de emails y URLs */
.info-value,
a[href^="mailto"],
a[href^="http"] {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Animated background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: moveGradient 20s ease-in-out infinite;
}

@keyframes moveGradient {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-5%, 5%) rotate(120deg);
    }

    66% {
        transform: translate(5%, -5%) rotate(240deg);
    }
}

.bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 60s linear infinite;
}

@keyframes moveGrid {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(50px);
    }
}

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

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    bottom: 10%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* ==================== HEADER ==================== */
header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--darker-bg);
    box-shadow: var(--glow-primary);
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: var(--glow-primary), var(--shadow-md);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    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 0.3s ease;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--card-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.lang-icon {
    width: 18px;
    height: 18px;
}

.btn-contact {
    padding: 0.625rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--darker-bg);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: var(--glow-primary);
    position: relative;
    overflow: hidden;
}

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

.btn-contact:hover::before {
    width: 300px;
    height: 300px;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.hero-badge span {
    color: #10b981;
    font-weight: 600;
    font-size: 0.875rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-line {
    color: var(--text-secondary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% auto;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

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

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--darker-bg);
    box-shadow: var(--glow-primary);
}

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

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--card-bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--darker-bg);
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

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

.stat-divider {
    width: 1px;
    background: var(--border-color);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-card {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.card-glow {
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: rotate 10s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

.profile-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    padding: 1rem;
}

.profile-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    background: var(--gradient-primary) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: rotate 8s linear infinite reverse;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--darker-bg);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.tech-orbit {
    position: absolute;
    inset: -60px;
}

.tech-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    animation: orbit 20s linear infinite;
    animation-delay: calc(var(--i) * -4s);
    transform-origin: 0 0;
}

.tech-icon:hover {
    background: var(--card-bg-hover);
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
    animation-play-state: paused;
    transform: scale(1.1);
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(250px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(250px) rotate(-360deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--gradient-primary);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {

    0%,
    100% {
        height: 40px;
        opacity: 1;
    }

    50% {
        height: 20px;
        opacity: 0.5;
    }
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 6rem 5%;
    position: relative;
}

.section-dark {
    background: rgba(2, 6, 23, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* ==================== SOBRE MÍ ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: var(--primary-color);
    background: var(--card-bg-hover);
    transform: translateX(5px);
}

.info-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-card {
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.experience-card:hover {
    border-color: var(--primary-color);
    background: var(--card-bg-hover);
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.gradient-bg {
    background: var(--gradient-primary);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--darker-bg);
}

.experience-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.experience-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.glass-card {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(71, 85, 105, 0.2);
}

/* ==================== HABILIDADES ==================== */
.skills-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.skills-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.3));
}

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

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover {
    border-color: var(--primary-color);
    background: var(--card-bg-hover);
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

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

.skill-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.5));
}

.skill-level {
    padding: 0.25rem 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.75rem;
}

.skill-card h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(71, 85, 105, 0.3);
    border-radius: 50px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50px;
    width: var(--progress);
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

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

@keyframes shimmerBar {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.hidden-skill {
    display: none;
}

.hidden-skill.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skills-toggle {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.soft-skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.soft-skill-card:hover {
    border-color: var(--secondary-color);
    background: var(--card-bg-hover);
    transform: translateY(-5px);
    box-shadow: var(--glow-secondary);
}

.soft-skill-icon {
    width: 48px;
    height: 48px;
    color: var(--secondary-color);
    margin: 0 auto 1rem;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.3));
}

.soft-skill-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.soft-skill-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ==================== EXPERIENCIA ==================== */
.experience-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.exp-category {
    margin-bottom: 4rem;
}

.exp-category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.exp-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.3));
}

.projects-grid {
    display: grid;
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    border-color: var(--primary-color);
    background: var(--card-bg-hover);
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.project-card.featured {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), var(--card-bg));
}

.project-card.featured::before {
    background: var(--gradient-accent);
}

.project-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.project-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-highlights {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-highlights li {
    color: var(--text-light);
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.project-highlights li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

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

.project-tags span {
    padding: 0.375rem 0.875rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    gap: 0.75rem;
    color: var(--primary-light);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    margin-left: 2rem;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-color: var(--primary-color);
    background: var(--card-bg-hover);
    transform: translateX(10px);
    box-shadow: var(--glow-primary);
}

.timeline-marker {
    position: absolute;
    left: -3rem;
    top: 2rem;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 4px solid var(--darker-bg);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--card-bg), var(--glow-primary);
}

.timeline-date {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.timeline-place {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ==================== CERTIFICACIONES ==================== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

.cert-card:hover {
    border-color: var(--primary-color);
    background: var(--card-bg-hover);
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--glow-primary);
}

.cert-card.upcoming {
    border-style: dashed;
    opacity: 0.8;
}

.cert-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: var(--glow-primary);
}

.cert-icon svg {
    width: 40px;
    height: 40px;
    color: var(--darker-bg);
}

.cert-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cert-desc {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cert-link:hover {
    gap: 0.75rem;
    color: var(--primary-light);
}

/* ==================== FOOTER ==================== */
.footer {
    background: rgba(2, 6, 23, 0.8);
    border-top: 1px solid var(--border-color);
    padding: 3rem 5%;
    backdrop-filter: blur(20px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--glow-primary);
    backdrop-filter: blur(10px);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--primary-color);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.scroll-top:hover svg {
    color: var(--darker-bg);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .tech-orbit {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-section {
        padding: 4rem 5%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        justify-content: center;
    }

    .section {
        padding: 4rem 5%;
    }

    .skills-grid,
    .soft-skills-grid,
    .certs-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        margin-left: 1.5rem;
    }

    .timeline-marker {
        left: -2.25rem;
    }
}

@media (max-width: 480px) {
    .profile-img {
        max-width: 280px;
    }

    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }
}