* {
            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;
        }

        .container {
            padding: 120px 5% 50px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .project-header {
            margin-bottom: 60px;
            text-align: center;
        }


        .project-subtitle {
            font-size: 20px;
            color: #aaa;
            margin-bottom: 30px;
        }

        /* Project Image Section */
        .project-image-section {
            margin-bottom: 80px;
            text-align: center;
        }

        .project-image {
            width: 100%;
            height: 500px;
            background-image: url(Images/ai_aythami.jpg);
            background-repeat: no-repeat;
            background-size: cover;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 120px;
            margin-bottom: 20px;
            box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
        }

        .project-titles {
            font-size: clamp(32px, 5vw, 56px);
            margin-bottom: 15px;
            background: linear-gradient(135deg, #fff 0%, #667eea 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }


        .image-caption {
            text-align: center;
            color: #aaa;
            font-size: 16px;
            font-style: italic;
        }

        .btn {
            margin-top: 30px;
            padding: 15px 35px;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            display: inline-block;
            cursor: pointer;
        }

        .btn-primary {
            border: 2px solid #667eea;
            color: #667eea;
        }

        .btn-primary:hover {
            background: rgba(102, 126, 234, 0.1);
        }

        /* Section Styles */
        .project-section {
            margin-bottom: 70px;
        }

        .section-title {
            font-size: 32px;
            color: #667eea;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(102, 126, 234, 0.3);
        }

        .section-content {
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
            padding: 35px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            line-height: 1.8;
        }

        .section-content p {
            color: #ccc;
            font-size: 18px;
            margin-bottom: 15px;
        }

        .section-content p:last-child {
            margin-bottom: 0;
        }

        /* Problems Section */
        .problems-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .problem-item {
            background: rgba(102, 126, 234, 0.1);
            padding: 25px;
            border-left: 4px solid #667eea;
            border-radius: 10px;
            border: 1px solid rgba(102, 126, 234, 0.2);
        }

        .problem-title {
            color: #667eea;
            font-weight: 600;
            font-size: 18px;
            margin-bottom: 10px;
        }

        .problem-description {
            color: #aaa;
            line-height: 1.6;
        }

        /* Technologies Section */
        .tech-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
        }

        .tech-card {
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
            padding: 25px;
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
            transition: all 0.3s;
        }

        .tech-card:hover {
            transform: translateY(-5px);
            border-color: #667eea;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
        }

        .tech-icon {
            font-size: 40px;
            margin-bottom: 10px;
        }

        .tech-name {
            color: #ddd;
            font-weight: 600;
            font-size: 16px;
        }

        /* Video Section */
        .video-container {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%;
            height: 0;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
        }

        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        .video-placeholder {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 60px;
            border-radius: 20px;
        }

        /* 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 {
            background: #050505;
            padding: 40px 5%;
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 100px;
        }

        footer p {
            color: #666;
        }

        @media (max-width: 768px) {
            .nav-links {
                gap: 20px;
                font-size: 13px;
            }

            .project-title {
                font-size: 36px;
            }

            .section-title {
                font-size: 24px;
            }

            .project-image {
                height: 250px;
                font-size: 80px;
            }

            .container {
                padding: 100px 5% 50px;
            }

            .tech-grid {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            }
        }

        /* 1. Botón de menú (oculto en PC) */
.menu-toggle {
    display: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

@media (max-width: 768px) {
            .nav-links {
                gap: 20px;
                font-size: 13px;
            }

            .project-title {
                font-size: 36px;
            }

            .section-title {
                font-size: 24px;
            }

            .project-image {
                height: 250px;
                font-size: 80px;
            }

            .container {
                padding: 100px 5% 50px;
            }

            .tech-grid {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            }
        }
        /* =======================================================
   CSS RESPONSIVE CONSOLIDADO (Hugo Pascual)
   ======================================================= */

/* 1. Botón de menú (oculto en PC) */
.menu-toggle {
    display: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

@media (max-width: 968px) {
    /* --- NAVEGACIÓN --- */
    .menu-toggle {
        display: block;
    }
    .nav-content{
        margin-right: 20px;
        margin-left: 20px;
    }

    .nav-links {
        display: none; /* Se activa con JS (.active) */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        padding: 20px 5% 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        gap: 0;
        max-height: 85vh;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        width: 100%;
        position: relative;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 17px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* --- SUBMENÚS EN MÓVIL (Integrados para que no muevan el diseño) --- */
    .dropdown-menu {
        position: relative; /* Ya no flota sobre el contenido */
        top: 0;
        left: 0;
        display: block; /* Visible por defecto dentro del menú desplegado */
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        border-left: 3px solid #667eea;
        margin: 5px 0 10px 15px;
        padding: 5px 0;
        min-width: auto;
        box-shadow: none;
    }

    .dropdown-menu li {
        border: none;
    }

    .dropdown-menu a {
        padding: 10px 20px !important;
        font-size: 14px !important;
        border: none;
    }

    /* --- HERO SECTION --- */
    .hero {
        padding: 120px 5% 60px;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 50px;
        line-height: 1.2;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        padding-left: 50px;
        padding-right: 50px;
    }

    .profile-card {
        max-width: 300px;
        max-height: 300px;
        margin: 0 auto;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    /* --- SOBRE MÍ --- */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image img {
        max-width: 280px;
    }

    .about-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .stat-card {
        width: 100%;
        max-width: 320px;
    }

    /* --- SKILLS & PROYECTOS --- */
    .skills-grid-new, 
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        max-width: 500px;
        margin: 0 auto;
    }

    /* --- TIMELINE (EXPERIENCIA) --- */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
        margin-bottom: 40px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }

    .timeline-dot {
        left: 20px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 34px;
    }
}