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

        :root {
            --bg-color: #0a0a0a;
            --text-color: #ffffff;
            --accent-color: #64ffda;
            --secondary-color: #bb86fc;
            --card-bg: rgba(255, 255, 255, 0.05);
            --border-color: rgba(255, 255, 255, 0.1);
            --header-bg-base: rgba(10, 10, 10, 0.9);
            --header-bg-scroll: rgba(10, 10, 10, 0.95);
        }

        @media (prefers-color-scheme: light) {
            :root {
                --bg-color: #f5f5f5;
                --text-color: #1a1a1a;
                --accent-color: #0066cc;
                --secondary-color: #6200ea;
                --card-bg: rgba(255, 255, 255, 0.8);
                --border-color: rgba(0, 0, 0, 0.1);
                --header-bg-base: rgba(245, 245, 245, 0.9);
                --header-bg-scroll: rgba(245, 245, 245, 0.95);
            }
        }

        body {
            background: var(--bg-color);
            color: var(--text-color);
            font-family: 'Arial', sans-serif;
            overflow-x: hidden;
            transition: all 0.3s ease;
        }

        /* Estrellas de fondo */
        .stars {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .star {
            position: absolute;
            width: 2px;
            height: 2px;
            background: var(--accent-color);
            border-radius: 50%;
            animation: twinkle 3s infinite ease-in-out;
        }

        @keyframes twinkle {
            0%, 100% { opacity: 0.3; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.2); }
        }

        /* Loader */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: var(--bg-color);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            transition: opacity 0.5s ease;
        }

        .loader.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .spinner {
            width: 60px;
            height: 60px;
            border: 3px solid transparent;
            border-top: 3px solid var(--accent-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loader-text {
            font-size: 1.2rem;
            color: var(--text-color);
            opacity: 0;
            animation: fadeInUp 0.8 ease 0.8s forwards;
        }


        /* Header */
        header {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 1rem 2rem;
            background: var(--header-bg-base);
            backdrop-filter: blur(10px);
            z-index: 100;
            transition: all 0.3s ease;
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--accent-color);
            text-decoration: none;
        }

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

        .nav-menu a {
            color: var(--text-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }

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

        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
        }

        .hamburger span {
            width: 25px;
            height: 3px;
            background: var(--text-color);
            margin: 3px 0;
            transition: 0.3s;
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 0 2rem;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.1) 0%, transparent 50%);
            animation: pulse-bg 4s ease-in-out infinite;
            z-index: -1;
        }

        @keyframes pulse-bg {
            0%, 100% { opacity: 0.3; transform: scale(1); }
            50% { opacity: 0.6; transform: scale(1.1); }
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .hero-content h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: fadeInUp 1s ease 1.3s forwards, gradient-shift 3s ease infinite, hero-title-float 6s ease-in-out infinite;
            position: relative;
            transform: perspective(1000px) rotateX(0deg);
            transition: all 0.3s ease;
        }

        .hero-content h1:hover {
            transform: perspective(1000px) rotateX(5deg) scale(1.05);
            text-shadow: 0 10px 30px rgba(100, 255, 218, 0.5);
        }

        @keyframes gradient-shift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        @keyframes hero-title-float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            25% { transform: translateY(-10px) rotate(0.5deg); }
            50% { transform: translateY(0px) rotate(0deg); }
            75% { transform: translateY(-5px) rotate(-0.5deg); }
        }

        .hero-content p {
            font-size: 1.3rem;
            opacity: 0.8;
            max-width: 600px;
            margin: 0 auto 2rem;
            position: relative;
            animation: fadeInUp 1s ease 1.5s forwards, text-glow 4s ease-in-out infinite;
        }

        @keyframes text-glow {
            0%, 100% { text-shadow: 0 0 10px rgba(100, 255, 218, 0.2); }
            50% { text-shadow: 0 0 20px rgba(100, 255, 218, 0.4), 0 0 30px rgba(187, 134, 252, 0.2); }
        }

        .cta-button {
            display: inline-block;
            padding: 1rem 2rem;
            background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
            color: white;
            text-decoration: none;
            border-radius: 50px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 5px 20px rgba(100, 255, 218, 0.3);
            animation: fadeInUp 1s ease 1.9s forwards, button-pulse 2s infinite;
        }

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

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

        .cta-button:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 10px 30px rgba(100, 255, 218, 0.5);
        }

        @keyframes button-pulse {
            0%, 100% { box-shadow: 0 5px 20px rgba(100, 255, 218, 0.3); }
            50% { box-shadow: 0 5px 30px rgba(100, 255, 218, 0.5), 0 0 20px rgba(187, 134, 252, 0.3); }
        }

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

        /* Círculos animados de fondo */
        .hero-bg-circles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 1;
        }

        .hero-circle {
            position: absolute;
            border: 2px solid rgba(100, 255, 218, 0.1);
            border-radius: 50%;
            animation: rotate-scale 20s linear infinite;
        }

        .hero-circle:nth-child(1) {
            width: 200px;
            height: 200px;
            top: 20%;
            left: 10%;
            animation-duration: 25s;
        }

        .hero-circle:nth-child(2) {
            width: 300px;
            height: 300px;
            top: 60%;
            right: 15%;
            animation-duration: 30s;
            animation-direction: reverse;
        }

        .hero-circle:nth-child(3) {
            width: 150px;
            height: 150px;
            bottom: 20%;
            left: 70%;
            animation-duration: 20s;
        }

        @keyframes rotate-scale {
            0% { transform: rotate(0deg) scale(1); opacity: 0.1; }
            50% { transform: rotate(180deg) scale(1.2); opacity: 0.3; }
            100% { transform: rotate(360deg) scale(1); opacity: 0.1; }
        }

        .cta-button:hover {
            transform: translateY(-3px);
        }

        /* About Section */
        .about {
            padding: 5rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

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

        .about-text h2 {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            color: var(--accent-color);
        }

        .about-text p {
            line-height: 1.6;
            opacity: 0.9;
            margin-bottom: 1rem;
        }

        .about-image {
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .about-image img {
            width: 100%;
            height: 400px;
            object-fit: cover;
        }

        /* Skills Section */
        .skills {
            padding: 5rem 2rem;
            background: var(--card-bg);
            backdrop-filter: blur(10px);
        }

        .skills-container {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }

        .skills h2 {
            font-size: 2.5rem;
            margin-bottom: 3rem;
            color: var(--accent-color);
        }

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

        .skill-card {
            background: var(--card-bg);
            padding: 2rem;
            border-radius: 15px;
            border: 1px solid var(--border-color);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .skill-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(100, 255, 218, 0.2);
        }

        .skill-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: var(--secondary-color);
        }

        .skill-card h3 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: var(--accent-color);
        }

        .skill-card p {
            opacity: 0.8;
            line-height: 1.5;
        }

        /* Animaciones */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

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

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

        @keyframes scaleIn {
            from {
                opacity: 0;
                transform: scale(0.8);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes rotateIn {
            from {
                opacity: 0;
                transform: rotate(-10deg) scale(0.9);
            }
            to {
                opacity: 1;
                transform: rotate(0deg) scale(1);
            }
        }

        /* Clases de animación base */
        .animate-on-scroll {
            opacity: 0;
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .animate-on-scroll.visible {
            opacity: 1;
        }

        /* Animaciones específicas */
        .fade-in-up {
            transform: translateY(40px);
        }

        .fade-in-up.visible {
            transform: translateY(0);
        }

        .fade-in-left {
            transform: translateX(-50px);
        }

        .fade-in-left.visible {
            transform: translateX(0);
        }

        .fade-in-right {
            transform: translateX(50px);
        }

        .fade-in-right.visible {
            transform: translateX(0);
        }

        .slide-in-top {
            transform: translateY(-40px);
        }

        .slide-in-top.visible {
            transform: translateY(0);
        }

        .scale-in {
            transform: scale(0.8);
        }

        .scale-in.visible {
            transform: scale(1);
        }

        .rotate-in {
            transform: rotate(-5deg) scale(0.95);
        }

        .rotate-in.visible {
            transform: rotate(0deg) scale(1);
        }

        /* Animaciones con delay progresivo */
        .stagger-animation {
            transition-delay: 0s;
        }

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

        /* Animación de typing para títulos */
        .typing-animation {
            overflow: hidden;
            white-space: nowrap;
            width: 0;
            border-right: none;
            opacity: 1;
        }

        .typing-animation.active {
            border-right: 3px solid var(--accent-color);
            animation: typing 3.5s steps(40, end) forwards, blink-caret 0.75s step-end infinite 3.5s;
        }

        @keyframes typing {
            from { width: 0; }
            to { width: 100%; }
        }

        @keyframes blink-caret {
            from, to { border-color: transparent; }
            50% { border-color: var(--accent-color); }
        }

        /* Animación de conteo para números */
        .counter {
            font-weight: bold;
            color: var(--accent-color);
        }

        /* Efecto de reveal para párrafos */
        .text-reveal {
            position: relative;
            overflow: hidden;
        }

        .text-reveal::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--accent-color);
            transform: translateX(-100%);
            transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .text-reveal.visible::before {
            transform: translateX(100%);
        }

        /* Animaciones para elementos del header */
        .header-animate {
            opacity: 0;
            transform: translateY(-20px);
            transition: all 0.6s ease;
        }

        .header-animate.loaded {
            opacity: 1;
            transform: translateY(0);
        }

        /* Partículas flotantes */
        .floating-particles {
            position: absolute;
            width: 6px;
            height: 6px;
            background: var(--accent-color);
            border-radius: 50%;
            animation: float 6s ease-in-out infinite;
            opacity: 0.4;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            33% { transform: translateY(-20px) rotate(120deg); }
            66% { transform: translateY(10px) rotate(240deg); }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .nav-menu {
                position: fixed;
                left: -100%;
                top: 70px;
                flex-direction: column;
                background: var(--bg-color);
                width: 100%;
                text-align: center;
                transition: 0.3s;
                padding: 2rem 0;
            }

            .nav-menu.active {
                left: 0;
            }

            .hamburger {
                display: flex;
            }

            .hamburger.active span:nth-child(2) {
                opacity: 0;
            }

            .hamburger.active span:nth-child(1) {
                transform: translateY(9px) rotate(45deg);
            }

            .hamburger.active span:nth-child(3) {
                transform: translateY(-9px) rotate(-45deg);
            }

            .hero-content h1 {
                font-size: 2.5rem;
            }

            .about-content {
                grid-template-columns: 1fr;
                text-align: center;
            }

            header {
                padding: 1rem;
            }
        }

        @media (max-width: 480px) {
            .hero-content h1 {
                font-size: 2rem;
            }

            .hero-content p {
                font-size: 1.1rem;
            }

            .about-text h2,
            .skills h2 {
                font-size: 2rem;
            }
        }
        
        /* Contact Section */
        .contact {
            padding: 5rem 2rem;
            background: linear-gradient(135deg, var(--card-bg) 0%, rgba(187, 134, 252, 0.1) 100%);
            position: relative;
            overflow: hidden;
        }

        .contact::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 30% 70%, rgba(100, 255, 218, 0.1) 0%, transparent 50%);
            animation: pulse-bg 6s ease-in-out infinite;
            z-index: -1;
        }

        .contact-content {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
            position: relative;
            z-index: 2;
        }

        .contact h2 {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            position: relative;
        }

        .contact h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
            border-radius: 2px;
            animation: expand-line 1s ease-out 0.5s forwards;
            transform-origin: center;
            scale: 0;
        }

        @keyframes expand-line {
            to { scale: 1; }
        }

        .contact p {
            font-size: 1.2rem;
            color: var(--text-color);
            opacity: 0.9;
            margin-bottom: 3rem;
            line-height: 1.6;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
        }

        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            background: var(--card-bg);
            border: 2px solid var(--border-color);
            border-radius: 50%;
            text-decoration: none;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            color: var(--text-color);
        }

        .social-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: -1;
        }

        .social-link i {
            font-size: 1.5rem;
            transition: all 0.4s ease;
            color: var(--text-color);
            opacity: 0.8;
        }

        .social-link:hover {
            transform: translateY(-10px) scale(1.1);
            border-color: var(--accent-color);
            box-shadow: 0 20px 40px rgba(100, 255, 218, 0.3);
        }

        .social-link:hover::before {
            opacity: 0.1;
        }

        .social-link:hover i {
            opacity: 1;
            transform: scale(1.2);
        }

        .social-link svg {
            transition: all 0.4s ease;
            opacity: 0.8;
        }

        .social-link:hover svg {
            opacity: 1;
            transform: scale(1.2);
        }

        /* Colores específicos para cada red social */
        .social-link.instagram:hover {
            border-color: #E4405F;
            box-shadow: 0 20px 40px rgba(228, 64, 95, 0.3);
        }

        .social-link.instagram:hover svg {
            color: #E4405F;
        }

        .social-link.linkedin:hover {
            border-color: #0077B5;
            box-shadow: 0 20px 40px rgba(0, 119, 181, 0.3);
        }

        .social-link.linkedin:hover i {
            color: #0077B5;
        }

        .social-link.github:hover {
            border-color: var(--accent-color);
            box-shadow: 0 20px 40px rgba(100, 255, 218, 0.3);
        }

        .social-link.github:hover i {
            color: var(--accent-color);
        }

        /* Animación de pulso para los enlaces sociales */
        .social-link:nth-child(1) { animation: social-pulse 2s infinite 0s; }
        .social-link:nth-child(2) { animation: social-pulse 2s infinite 0.2s; }
        .social-link:nth-child(3) { animation: social-pulse 2s infinite 0.4s; }
        .social-link:nth-child(4) { animation: social-pulse 2s infinite 0.6s; }
        .social-link:nth-child(5) { animation: social-pulse 2s infinite 0.8s; }

        @keyframes social-pulse {
            0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); }
            50% { box-shadow: 0 8px 32px rgba(100, 255, 218, 0.2); }
        }

        /* Footer */
        .footer {
            background: var(--bg-color);
            padding: 3rem 2rem;
            text-align: center;
            border-top: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
            animation: shimmer 3s ease-in-out infinite;
        }

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

        .footer p {
            color: var(--text-color);
            opacity: 0.7;
            font-size: 1rem;
            margin: 0;
            position: relative;
            z-index: 2;
        }

        .footer::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 20px;
            transform: translateY(-50%);
            font-size: 1.5rem;
            animation: sparkle 2s ease-in-out infinite;
            opacity: 0.6;
            color: var(--accent-color);
        }

        @keyframes sparkle {
            0%, 100% { opacity: 0.3; transform: translateY(-50%) rotate(0deg); }
            50% { opacity: 1; transform: translateY(-50%) rotate(180deg); }
        }