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

:root {
    /* Paleta minimalista - Modo claro */
    --primary-color: #6b7280;
    --primary-light: #9ca3af;
    --primary-dark: #4b5563;
    --secondary-color: #374151;
    --secondary-light: #6b7280;
    --accent-color: #1f2937;
    --accent-light: #374151;

    /* Backgrounds minimalistas */
    --dark-bg: #f9fafb;
    --darker-bg: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-bg-hover: rgba(255, 255, 255, 0.95);

    /* Text colors */
    --text-color: #111827;
    --text-secondary: #374151;
    --text-light: #6b7280;
    --text-muted: #9ca3af;

    /* Borders */
    --border-color: rgba(229, 231, 235, 0.8);
    --border-hover: rgba(107, 114, 128, 0.3);

    /* Gradients minimalistas */
    --gradient-primary: linear-gradient(135deg, #6b7280 0%, #374151 100%);
    --gradient-secondary: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    --gradient-accent: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    --gradient-card: linear-gradient(135deg, rgba(107, 114, 128, 0.05) 0%, rgba(55, 65, 81, 0.05) 100%);

    /* Shadows suaves */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    --glow-primary: 0 0 20px rgba(107, 114, 128, 0.15);
    --glow-secondary: 0 0 20px rgba(55, 65, 81, 0.15);

    /* 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;
}

/* Modo oscuro */
[data-theme="dark"] {
    /* Paleta minimalista - Modo oscuro */
    --primary-color: #9ca3af;
    --primary-light: #d1d5db;
    --primary-dark: #6b7280;
    --secondary-color: #d1d5db;
    --secondary-light: #e5e7eb;
    --accent-color: #f3f4f6;
    --accent-light: #f9fafb;

    /* Backgrounds oscuros */
    --dark-bg: #1f2937;
    --darker-bg: #111827;
    --card-bg: rgba(31, 41, 55, 0.8);
    --card-bg-hover: rgba(31, 41, 55, 0.95);

    /* Text colors oscuros */
    --text-color: #f9fafb;
    --text-secondary: #e5e7eb;
    --text-light: #d1d5db;
    --text-muted: #9ca3af;

    /* Borders oscuros */
    --border-color: rgba(75, 85, 99, 0.3);
    --border-hover: rgba(156, 163, 175, 0.3);

    /* Gradients oscuros */
    --gradient-primary: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    --gradient-secondary: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    --gradient-accent: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    --gradient-card: linear-gradient(135deg, rgba(156, 163, 175, 0.05) 0%, rgba(107, 114, 128, 0.05) 100%);

    /* Shadows oscuras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
    --glow-primary: 0 0 20px rgba(156, 163, 175, 0.2);
    --glow-secondary: 0 0 20px rgba(107, 114, 128, 0.2);
}

    /* 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(107, 114, 128, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(55, 65, 81, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background-image:
        radial-gradient(at 0% 0%, rgba(156, 163, 175, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(107, 114, 128, 0.1) 0px, transparent 50%);
}

/* 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(107, 114, 128, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(55, 65, 81, 0.05) 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(107, 114, 128, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 114, 128, 0.02) 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(107, 114, 128, 0.15) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

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

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(31, 41, 55, 0.12) 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(255, 255, 255, 0.9);
    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(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] header {
    background: rgba(17, 24, 39, 0.9);
}

[data-theme="dark"] header.scrolled {
    background: rgba(17, 24, 39, 0.95);
}

.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;
    transition: all 0.3s ease;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 20px rgba(6, 182, 212, 0.4));
    transition: all 0.3s ease;
}

.logo:hover .logo-icon svg {
    filter: drop-shadow(0 8px 30px rgba(6, 182, 212, 0.6));
    transform: translateY(-2px) rotate(5deg);
}

.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;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

.theme-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    position: absolute;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.8);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.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);
}



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

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(107, 114, 128, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    width: fit-content;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(107, 114, 128, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(107, 114, 128, 0);
    }
}

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

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-greeting {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-name {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-role {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 600px;
    text-align: justify;
    text-justify: inter-word;
}

.hero-description strong {
    color: var(--primary-color);
    font-weight: 700;
}

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

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

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
}

.image-backdrop {
    position: absolute;
    inset: -20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(40px);
    animation: rotate 10s linear infinite;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    object-fit: cover;
    object-position: center 35%;
}

.hero-image:hover {
    transform: scale(1.02);
}

.floating-tech {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tech-badge {
    position: absolute;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.tech-badge:nth-child(1) {
    top: 5%;
    left: -5%;
    animation-delay: 0s;
}

.tech-badge:nth-child(2) {
    top: 25%;
    right: -8%;
    animation-delay: 0.5s;
}

.tech-badge:nth-child(3) {
    bottom: 25%;
    left: -8%;
    animation-delay: 1s;
}

.tech-badge:nth-child(4) {
    bottom: 5%;
    right: 0%;
    animation-delay: 1.5s;
}

.tech-badge:nth-child(5) {
    top: 50%;
    right: -10%;
    animation-delay: 2s;
}

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

/* Hero Stats - New Design */
.hero-stats-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

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

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

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-color);
    line-height: 1;
}

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

.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;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.5rem;
    background: rgba(6, 182, 212, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(6, 182, 212, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

.stat-value {
    font-size: 2.75rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.3));
}

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

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

/* 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;
    z-index: 10;
}

.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(249, 250, 251, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .section-dark {
    background: rgba(31, 41, 55, 0.5);
}

.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(107, 114, 128, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.2);
    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;
    text-align: justify;
    text-justify: inter-word;
}

.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;
    text-align: justify;
    text-justify: inter-word;
}

.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(107, 114, 128, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.2);
    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;
    text-align: justify;
    text-justify: inter-word;
}

/* ==================== 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-toggle-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.exp-hidden {
    margin-top: 2rem;
}

.btn-toggle-exp {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--darker-bg);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glow-primary), 0 4px 15px rgba(6, 182, 212, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-toggle-exp::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-toggle-exp:hover::before {
    width: 300px;
    height: 300px;
}

.btn-toggle-exp:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--glow-primary), 0 8px 25px rgba(6, 182, 212, 0.5);
}

.btn-toggle-exp .toggle-text {
    position: relative;
    z-index: 1;
}

.btn-toggle-exp .toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-toggle-exp:hover .toggle-icon {
    transform: translateY(3px);
}

.exp-content {
    animation: fadeInUp 0.5s ease-out;
}

.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(--primary-color);
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.05), var(--card-bg));
}

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

.project-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(107, 114, 128, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.2);
    border-radius: 50px;
    color: var(--primary-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;
    text-align: justify;
    text-justify: inter-word;
}

.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(107, 114, 128, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.2);
    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(107, 114, 128, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.2);
    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;
    text-align: justify;
    text-justify: inter-word;
}

/* ==================== 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;
    text-align: justify;
    text-justify: inter-word;
}

.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(249, 250, 251, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 3rem 5%;
    backdrop-filter: blur(20px);
}

[data-theme="dark"] .footer {
    background: rgba(31, 41, 55, 0.9);
}

.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: 56px;
    height: 56px;
}

.footer-brand .logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 30px rgba(6, 182, 212, 0.3));
}

.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);
}

/* ==================== MOBILE MENU STYLES ==================== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
    position: relative;
}

.mobile-menu-btn span {
    width: 26px;
    height: 2.5px;
    background: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    display: block;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay - always available, shown via JS */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
}

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

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* ==================== RESPONSIVE ==================== */

/* -------- Tablet / Small Desktop (≤1024px) -------- */
@media (max-width: 1024px) {

    /* Hero: stack vertically */
    .hero-section {
        flex-direction: column;
        padding: 5rem 5% 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0;
    }

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

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual {
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .profile-card {
        max-width: 300px;
        margin: 0 auto;
    }

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

    .tech-orbit {
        display: none;
    }

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

/* -------- Mobile (≤768px) -------- */
@media (max-width: 768px) {

    /* -- Mobile Navigation -- */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: flex !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(24px) saturate(180%);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        z-index: 1050;
        transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    [data-theme="dark"] .nav-links {
        background: rgba(17, 24, 39, 0.97);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links .nav-link {
        display: block;
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
        border-radius: var(--radius-md);
    }

    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        background: rgba(107, 114, 128, 0.1);
    }

    .nav-links .nav-link::after {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .nav-overlay {
        display: block;
    }

    /* -- Hero -- */
    .hero-section {
        flex-direction: column;
        padding: 2rem 5% 3rem;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-visual-new {
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .hero-image-container {
        max-width: 250px;
    }

    .floating-tech {
        display: none; /* Ocultar badges flotantes en móvil para evitar overflow */
    }

    .hero-badge {
        justify-content: center;
        margin-bottom: 1rem;
        padding: 0.5rem 1rem;
    }

    .hero-badge span {
        font-size: 0.8rem;
    }

    .hero-name {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        line-height: 1.1;
    }

    .hero-role {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

    .hero-description {
        font-size: 0.95rem;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.5rem;
        line-height: 1.7;
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .hero-cta .btn {
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .hero-stats-new {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .stat-card {
        padding: 1rem;
        flex-direction: row;
        text-align: left;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-text {
        font-size: 0.8rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* -- Sections general -- */
    .section {
        padding: 3rem 5%;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    /* -- Sobre Mí -- */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content h3 {
        font-size: 1.35rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .about-content p {
        font-size: 0.95rem;
        text-align: left;
        margin-bottom: 1rem;
    }

    .about-info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 1.5rem 0;
    }

    .info-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .info-item svg {
        align-self: center;
    }

    .info-value {
        font-size: 0.9rem;
        word-break: break-all;
    }

    .about-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .about-actions .btn {
        justify-content: center;
        width: 100%;
        padding: 0.875rem 1rem;
    }

    .about-cards {
        gap: 1rem;
        margin-top: 2rem;
    }

    .experience-card {
        padding: 1.5rem;
        text-align: center;
    }

    .experience-card h4 {
        font-size: 1rem;
    }

    .experience-card p {
        font-size: 0.85rem;
    }

    /* -- Habilidades -- */
    .skills-grid,
    .soft-skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-title {
        font-size: 1.3rem;
        text-align: center;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .skill-card {
        padding: 1.25rem;
    }

    .skill-card h4 {
        font-size: 0.95rem;
        text-align: center;
    }

    .soft-skill-card {
        padding: 1.5rem;
        text-align: center;
    }

    .soft-skill-card h4 {
        font-size: 1rem;
    }

    .soft-skill-card p {
        font-size: 0.85rem;
    }

    .skills-toggle {
        text-align: center;
        margin-top: 1.5rem;
    }

    .skills-toggle .btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }

    /* -- Experiencia -- */
    .exp-category-title {
        font-size: 1.3rem;
        text-align: center;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .btn-toggle-exp {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        max-width: 280px;
        margin: 0 auto;
    }

    .exp-toggle-container {
        text-align: center;
    }

    .project-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .project-content h4 {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 0.75rem;
    }

    .project-role {
        text-align: center;
        font-size: 0.9rem;
    }

    .project-desc {
        font-size: 0.9rem;
        text-align: left;
        line-height: 1.6;
    }

    .project-highlights {
        margin: 1rem 0;
    }

    .project-highlights li {
        font-size: 0.9rem;
        padding-left: 1.25rem;
        margin-bottom: 0.5rem;
        text-align: left;
    }

    .project-tags {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .project-tags span {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .project-link {
        display: block;
        text-align: center;
        margin-top: 1rem;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        margin-left: 1.5rem;
        padding: 1.25rem;
        text-align: center;
    }

    .timeline-marker {
        left: -2.25rem;
        width: 14px;
        height: 14px;
    }

    .timeline-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .timeline-place {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
        text-align: left;
    }

    /* -- Certificaciones -- */
    .certs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cert-card {
        padding: 1.75rem;
        text-align: center;
    }

    .cert-card h4 {
        font-size: 1.1rem;
    }

    .cert-desc {
        font-size: 0.85rem;
        text-align: center;
    }

    .cert-icon {
        width: 64px;
        height: 64px;
    }

    .cert-icon svg {
        width: 32px;
        height: 32px;
    }
        height: 32px;
    }

    /* -- Footer -- */
    .footer {
        padding: 2rem 5%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links {
        justify-content: center;
        gap: 1.25rem;
    }

    /* -- Scroll Top -- */
    .scroll-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 48px;
        height: 48px;
    }

    .scroll-top svg {
        width: 20px;
        height: 20px;
    }
}

/* -------- Small Mobile (≤480px) -------- */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 4%;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .lang-toggle {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

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

    .hero-image-container {
        max-width: 200px;
    }

    .hero-name {
        font-size: clamp(2rem, 9vw, 2.5rem);
    }

    .hero-role {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
    }

    .hero-description {
        font-size: 0.875rem;
        padding: 0 0.5rem;
    }

    .hero-cta {
        padding: 0 0.5rem;
    }

    .hero-cta .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .hero-stats-new {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.875rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-text {
        font-size: 0.75rem;
    }

    .section {
        padding: 2rem 4%;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .about-content h3 {
        font-size: 1.15rem;
    }

    .about-content p {
        font-size: 0.875rem;
        line-height: 1.7;
    }

    .info-item {
        padding: 0.875rem;
        gap: 0.5rem;
    }

    .info-label {
        font-size: 0.7rem;
    }

    .info-value {
        font-size: 0.8rem;
    }

    .experience-card {
        padding: 1.25rem;
    }

    .experience-card h4 {
        font-size: 0.95rem;
    }

    .experience-card p {
        font-size: 0.8rem;
    }

    .category-title {
        font-size: 1.15rem;
    }

    .category-icon {
        width: 24px;
        height: 24px;
    }

    .skill-card {
        padding: 1rem;
    }

    .skill-card h4 {
        font-size: 0.9rem;
    }

    .soft-skill-card {
        padding: 1.25rem;
    }

    .soft-skill-icon {
        width: 36px;
        height: 36px;
    }

    .soft-skill-card h4 {
        font-size: 0.95rem;
    }

    .soft-skill-card p {
        font-size: 0.8rem;
    }

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

    .exp-category-title {
        font-size: 1.15rem;
    }

    .btn-toggle-exp {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        max-width: 260px;
    }

    .project-card {
        padding: 1.25rem;
    }

    .project-content h4 {
        font-size: 1.05rem;
    }

    .project-role {
        font-size: 0.85rem;
    }

    .project-desc {
        font-size: 0.85rem;
    }

    .project-highlights li {
        font-size: 0.85rem;
        padding-left: 1.25rem;
    }

    .project-tags span {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .timeline {
        padding-left: 0.75rem;
    }

    .timeline-item {
        margin-left: 1.25rem;
        padding: 1rem;
    }

    .timeline-marker {
        left: -1.85rem;
        width: 12px;
        height: 12px;
        border-width: 3px;
    }

    .timeline-date {
        font-size: 0.7rem;
    }

    .timeline-content h4 {
        font-size: 0.95rem;
    }

    .timeline-content p,
    .timeline-place {
        font-size: 0.85rem;
    }

    .cert-card {
        padding: 1.5rem;
    }

    .cert-card h4 {
        font-size: 1.05rem;
    }

    .cert-desc {
        font-size: 0.85rem;
    }

    .cert-icon {
        width: 56px;
        height: 56px;
    }

    .cert-icon svg {
        width: 28px;
        height: 28px;
    }

    /* -- Footer -- */
    .footer {
        padding: 2rem 4%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    /* -- Scroll Top -- */
    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    .scroll-top svg {
        width: 18px;
        height: 18px;
    }

    /* -- Navigation Mobile Improvements -- */
    .nav-links {
        width: 85%;
        padding: 4rem 1.5rem 2rem;
    }

    .nav-links .nav-link {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}
}

/* -------- Very Small Screens (≤360px) -------- */
@media (max-width: 360px) {
    .hero-section {
        padding: 1rem 3% 1.5rem;
    }

    .hero-image-container {
        max-width: 180px;
    }

    .hero-name {
        font-size: 1.8rem;
    }

    .hero-role {
        font-size: 0.95rem;
    }

    .hero-description {
        font-size: 0.8rem;
        padding: 0;
    }

    .hero-cta {
        padding: 0;
    }

    .hero-cta .btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }

    .hero-stats-new {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-text {
        font-size: 0.7rem;
    }

    .nav-links {
        width: 90%;
        padding: 3.5rem 1rem 1.5rem;
    }

    .nav-links .nav-link {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }

    .section {
        padding: 1.5rem 3%;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .about-content h3 {
        font-size: 1rem;
    }

    .about-content p {
        font-size: 0.8rem;
    }

    .info-item {
        padding: 0.75rem;
    }

    .info-value {
        font-size: 0.75rem;
    }

    .project-card {
        padding: 1rem;
    }

    .project-content h4 {
        font-size: 0.95rem;
    }

    .project-desc {
        font-size: 0.8rem;
    }

    .project-highlights li {
        font-size: 0.8rem;
    }

    .btn-toggle-exp {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
        max-width: 240px;
    }

    .timeline-item {
        padding: 0.875rem;
    }

    .timeline-content h4 {
        font-size: 0.9rem;
    }

    .cert-card {
        padding: 1.25rem;
    }

    .cert-card h4 {
        font-size: 0.95rem;
    }

    .cert-icon {
        width: 48px;
        height: 48px;
    }

    .cert-icon svg {
        width: 24px;
        height: 24px;
    }

    .footer {
        padding: 1.5rem 3%;
    }

    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 0.75rem;
        right: 0.75rem;
    }

    .scroll-top svg {
        width: 16px;
        height: 16px;
    }
}

/* ==================== MEJORAS MÓVILES ADICIONALES ==================== */

/* Touch targets mínimos de 44px para mejor usabilidad móvil */
@media (max-width: 768px) {
    .btn, .nav-link, .theme-toggle, .lang-toggle, .mobile-menu-btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Mejorar el área de toque para enlaces pequeños */
    .project-link, .cert-link, .footer-links a {
        padding: 0.5rem;
        margin: -0.5rem;
    }

    /* Prevenir zoom en inputs en iOS */
    input, select, textarea {
        font-size: 16px;
    }

    /* Mejorar scroll en móvil */
    body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Ocultar elementos decorativos en móvil para mejor rendimiento */
    .bg-animation {
        display: none;
    }

    /* Simplificar animaciones en móvil */
    *, *::before, *::after {
        animation-duration: 0.3s !important;
        animation-delay: 0s !important;
        transition-duration: 0.3s !important;
    }

    /* Mejorar contraste para pantallas móviles */
    .text-muted {
        color: var(--text-light);
    }
}

/* Orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 1rem 5%;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }

    .hero-visual-new {
        order: 1;
        margin-bottom: 0;
    }

    .hero-image-container {
        max-width: 200px;
    }

    .hero-text {
        text-align: left;
    }

    .hero-badge {
        justify-content: flex-start;
    }

    .hero-cta {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0;
    }

    .hero-stats-new {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== FIN MEJORAS MÓVILES ==================== */