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

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #0a0a0a;
            color: #fff;
            overflow-x: hidden;
            scroll-behavior: smooth;
        }

        /* Navegación */
        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(10, 10, 10, 0.8);
            backdrop-filter: blur(20px);
            padding: 20px 5%;
            z-index: 1000;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

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

        .logo {
            font-size: 24px;
            font-weight: bold;
            background: #fff;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nav-links {
            display: flex;
            gap: 40px;
            list-style: none;
        }

        .nav-links a {
            color: #fff;
            text-decoration: none;
            transition: color 0.3s;
            font-size: 15px;
        }

        .nav-links a:hover {
            color: #667eea;
        }

        .dropdown {
            position: relative;
        }

        .dropdown-menu {
            display: none;
            position: absolute;
            top: 120%; /* separa el submenú de Skills sin romper el hover */
            left: 0;
            background: rgba(15, 15, 15, 0.95);
            backdrop-filter: blur(15px);
            list-style: none;
            padding: 10px 0;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            min-width: 180px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-5px);
            transition: all 0.25s ease;
        }

        /* Mostrar al pasar el ratón */
        .dropdown:hover .dropdown-menu {
            display: block;
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Estilo de los enlaces */
        .dropdown-menu li {
            width: 100%;
        }

        .dropdown-menu a {
            display: block;
            padding: 10px 20px;
            color: #fff;
            font-size: 14px;
            text-decoration: none;
            transition: background 0.3s, color 0.3s;
        }

        .dropdown-menu a:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #667eea;
        }


        /* Hero Section */
       .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 100px 5% 50px;
            position: relative;
            overflow: hidden;
            background-image: url(Images/hacker1.jpg);
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        .hero::before {
            content: '';
            position: absolute;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(44, 56, 109, 0.3) 0%, transparent 70%);
            top: -200px;
            right: -200px;
            animation: float 6s ease-in-out infinite;
            z-index: 0;
        }

        .hero::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(10, 10, 10, 0.9);
            z-index: 1;
        }

        .hero-content {
            max-width: 1400px;
            width: 100%;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            position: relative;
            z-index: 2;  /* ← MÁS ALTO QUE EL ::after */
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) scale(1); }
            50% { transform: translateY(-20px) scale(1.1); }
        }

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

        .hero-text h1 {
            font-size: 64px;
            margin-bottom: 20px;
            line-height: 1.1;
        }

        .hero-text .highlight {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-text p {
            font-size: 20px;
            color: #aaa;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .hero-buttons {
            display: flex;
            gap: 20px;
        }

        .btn {
            padding: 15px 35px;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            display: inline-block;
            cursor: pointer;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
        }

        .btn-secondary {
            border: 2px solid #667eea;
            color: #667eea;
        }

        .btn-secondary:hover {
            background: rgba(102, 126, 234, 0.1);
        }

        .hero-image {
            position: relative;
        }

        .profile-card {
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
            padding: 40px;
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
        }

        .profile-pic {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 80px;
        }

        /* Sobre Mí */
        .section {
            padding: 100px 5%;
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-title {
            font-size: 48px;
            margin-bottom: 20px;
            text-align: center;
        }

        .section-subtitle {
            text-align: center;
            color: #aaa;
            font-size: 18px;
            margin-bottom: 60px;
        }

        .about-content {
            display: grid;
            grid-template-columns: 1.5fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .about-text {
            font-size: 18px;
            line-height: 1.8;
            color: #ccc;
            margin-top: 30px;
        }

        .about-text p {
            margin-bottom: 20px;
        }

        .about-stats {
            display: flex;
            flex-direction: column;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
        }

        .stat-card {
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
            padding: 30px;
            margin-left: 70px;
            margin-right: 70px;
            max-width: 300px;
            border-radius: 20px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .stat-number {
            font-size: 48px;
            font-weight: bold;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
        }

        .stat-label {
            color: #aaa;
            font-size: 16px;
        }

        /* Skills */
        .skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

        .skills-grid-new {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 40px;
            margin-top: 40px;
        }

        .skill-card {
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
            padding: 35px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s;
        }

        .skill-card:hover {
            transform: translateY(-5px);
            border-color: #667eea;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
        }

        .skill-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 25px;
        }

        .skill-icon {
            font-size: 40px;
        }

        .skill-title {
            font-size: 24px;
            color: #fff;
        }

        .skill-items {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .skill-item-new {
            color: #ccc;
            font-size: 16px;
            padding-left: 20px;
            position: relative;
        }

        .skill-item-new::before {
            content: '▹';
            position: absolute;
            left: 0;
            color: #667eea;
            font-size: 20px;
        }

        .skill-sub {
            color: #888;
            font-size: 14px;
            margin-left: 20px;
            margin-top: 5px;
        }

        .skill-note {
            color: #667eea;
            font-size: 13px;
            font-style: italic;
            margin-left: 5px;
        }

        /* Proyectos */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 40px;
            margin-top: 40px;
        }

        .project-card {
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
        }

        .project-image {
            height: 250px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 64px;
            position: relative;
            overflow: hidden;
        }
        
        .img1{
            background-image: url(Images/hand.jpg);
            background-size: cover;

        }
        .img2{
            background-image: url(Images/wand_port.jpg);
            background-size: cover;

        }
        .img3{
            background-image: url(Images/roboticArm.jpg);
            background-size: cover;

        }
        .img4{
            background-image: url(Images/gameEngine.png);
            background-size: cover;
        }

        .project-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            opacity: 0;
            transition: opacity 0.3s;
        }

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

        .project-link {
            width: 50px;
            height: 50px;
            background: #667eea;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            text-decoration: none;
            color: white;
            transition: transform 0.3s;
        }

        .project-link:hover {
            transform: scale(1.1);
        }

        .project-info {
            padding: 30px;
        }

        .project-title {
            font-size: 24px;
            margin-bottom: 15px;
        }

        .project-description {
            color: #aaa;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .tag {
            background: rgba(102, 126, 234, 0.2);
            color: #667eea;
            padding: 6px 15px;
            border-radius: 20px;
            font-size: 13px;
            border: 1px solid rgba(102, 126, 234, 0.3);
        }

        /* Experiencia */
        .timeline {
            position: relative;
            max-width: 1000px;
            margin: 60px auto 0;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 2px;
            height: 100%;
            background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
        }

        .timeline-item {
            display: flex;
            margin-bottom: 60px;
            position: relative;
        }

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

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

        .timeline-content {
            width: 45%;
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
            padding: 30px;
            border-radius: 20px;
            border: 1px solid rgba(102, 126, 234, 0.3);
        }

        .timeline-date {
            color: #667eea;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .timeline-title {
            font-size: 22px;
            margin-bottom: 10px;
        }

        .timeline-description {
            color: #aaa;
            line-height: 1.6;
        }

        .timeline-dot {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 20px;
            background: #667eea;
            border-radius: 50%;
            border: 4px solid #0a0a0a;
            box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
        }

        /* Contacto */
        .contact-content {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .contact-methods {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .contact-card {
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
            padding: 40px 30px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s;
            cursor: pointer;
        }

        .contact-card:hover {
            transform: translateY(-5px);
            border-color: #667eea;
        }

        .contact-icon {
            font-size: 48px;
            margin-bottom: 20px;
        }

        .contact-label {
            color: #aaa;
            margin-bottom: 10px;
        }

        .contact-value a{
            color: #fff;
            font-weight: 600;
            text-decoration: none;
        }

        /* Footer */
        footer {
            background: #050505;
            padding: 40px 5%;
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        footer p {
            color: #666;
        }

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

            .hero-text h1 {
                font-size: 48px;
            }

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

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

            .nav-links {
                gap: 20px;
            }

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

            .timeline::before {
                left: 20px;
            }

            .timeline-item {
                flex-direction: row !important;
                justify-content: flex-start !important;
            }

            .timeline-content {
                width: calc(100% - 60px);
                margin-left: 60px;
            }

            .timeline-dot {
                left: 20px;
            }
        }

        @media (max-width: 600px) {
            .hero-text h1 {
                font-size: 36px;
            }

            .section-title {
                font-size: 36px;
            }

            .nav-links {
                display: none;
            }
        }