:root {
            --primary-color: #6c5ce7;
            --secondary-color: #a29bfe;
            --accent-color: #fd79a8;
            --text-color: #ffffff;
            --dark-bg: #0a0a0a;
            --grid-color: #1a1a1a;
            --card-bg: rgba(30, 30, 30, 0.8);
            --shadow-color: rgba(0, 0, 0, 0.5);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: all 0.4s ease;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--dark-bg);
            color: var(--text-color);
            background-image: 
            linear-gradient(var(--grid-color) 1px, transparent 1px),
            linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
            background-size: 40px 40px;
            line-height: 1.6;
            overflow-x: hidden;
        }

        .container {
            width: 90%;
            max-width: 1000px;
            margin: 20px auto;
        }


        /* Header y Navegación */
        header {
            background-color: rgba(20, 20, 20, 0.9);
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            backdrop-filter: blur(10px);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 0;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            color: var(--primary-color);
            text-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
        }

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

        .nav-links li {
            margin-left: 30px;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 500;
            padding: 8px 15px;
            border-radius: 30px;
        }

        .nav-links a:hover, .nav-links a.active {
            background-color: var(--primary-color);
            color: white;
            box-shadow: 0 0 15px var(--primary-color);
        }


        /* Secciones */
        section {
            padding: 120px 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .section-title {
            text-align: center;
            margin-bottom: 60px;
            color: var(--primary-color);
            font-size: 2.8rem;
            position: relative;
            text-shadow: 0 0 10px rgba(108, 92, 231, 0.3);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--primary-color);
            border-radius: 2px;
        }


        /* Inicio */
        #inicio {
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        #inicio::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at center, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
            z-index: -1;
        }

        .intro-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .profile-img {
            width: 220px;
            height: 220px;
            border-radius: 50%;
            object-fit: cover;
            border: 5px solid var(--primary-color);
            margin: 0 auto 30px;
            transition: all 0.5s ease;
            cursor: pointer;
            box-shadow: 0 0 30px var(--primary-color);
            position: relative;
            overflow: hidden;
        }

        .profile-img:hover {
            transform: scale(1.05);
            box-shadow: 0 0 40px var(--primary-color);
            filter: brightness(1.2);
        }

        .intro-text h1 {
            font-size: 3.5rem;
            margin-bottom: 15px;
            color: var(--text-color);
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
        }

        .profession {
            font-size: 1.8rem;
            margin-bottom: 40px;
            color: var(--secondary-color);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 25px;
            margin-top: 30px;
        }

        .social-icon {
            font-size: 2.8rem;
            color: var(--text-color);
            transition: all 0.4s ease;
            background: rgba(255, 255, 255, 0.1);
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .social-icon:hover {
            color: white;
            transform: translateY(-10px) scale(1.1);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            background: var(--primary-color);
        }


        /* Sobre mí */
        #sobre-mi {
            background-color: rgba(20, 20, 20, 0.7);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            margin: 40px 0;
            padding: 60px 40px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .about-content {
            max-width: 1000px;
            margin: 0 auto;
            text-align: left;
            font-size: 1.4rem;
            line-height: 1.9;
        }


        /* Habilidades */
        .skills-container {
            display: grid;
            grid-template-columns: repeat(5, 1fr);

            gap: 120px;
            margin-top: 10px;
        }

        .skill-item {
            background-color: var(--card-bg);
            padding: 30px 20px;
            border-radius: 15px;
            text-align: center;
            box-shadow: 10px 20px rgba(0, 0, 0, 0.2);
            transition: all 0.4s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .skill-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }

        .skill-icon {
            font-size: 3.5rem;
            margin-bottom: 15px;
            transition: all 0.4s ease;
        }


        /* Colores naturales para los logos de habilidades */
        .fa-python { color: #3776AB; }
        .fa-java { color: #007396; }
        .fa-js { color: #F7DF1E; }
        .fa-html5 { color: #E34F26; }
        .fa-css3-alt { color: #1572B6; }
        .fa-react { color: #61DAFB; }
        .fa-node { color: #339933; }
        .fa-database { color: #336791; }
        .devicon-csharp-plain {color: #9B4F96;}
        .devicon-dot-net-plain {color: #512bd4;}

        .skill-item p {
            font-weight: 600;
            font-size: 1.1rem;
            margin-top: 10px;
        }


        /* Seccion de educacion */
        .education-section {
            padding: 100px 0;
        }

        .education-container {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            justify-content: center;
            margin-top: 50px;
        }

        .education-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            padding: 30px 25px;
            width: 260px;
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .education-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        }

        .education-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 15px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.1);
            color: var(--secondary-color);
            font-size: 1.8rem;
        }

        .education-type {
            font-size: 0.85rem;
            color: #b8b8b8;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .education-title  {
            margin-top: 10px;
            font-size: 1rem;
            font-weight: 600;
            color: #fff;
            line-height: 1.4;
        }

        .education-title small {
            display: block;
            font-size: 0.85rem;
            color: #9f9f9f;
            margin-top: 4px;
        }

        /* Card en progreso (Inglés) */
        .education-coming .education-type {
            color: #c7b6ff;
        }

        .education-coming .education-title small {
            color: var(--secondary-color);
            font-weight: 500;
        }


        /* Proyectos */
        .projects-container {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 40px;
        }

        .project-card {
            background-color: var(--card-bg);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            transition: all 0.4s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }

        .project-img-container {
            position: relative;
            overflow: hidden;
            height: 250px;
        }

        .project-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.5s ease;
        }

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

        .project-info {
            padding: 25px;
        }

        .project-info h3 {
            margin-bottom: 15px;
            color: var(--primary-color);
            font-size: 1.5rem;
        }

        .project-info p {
            margin-bottom: 20px;
            color: var(--text-color);
        }

        .tech-stack {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 20px;
        }

        .tech-pill {
            background: rgba(108, 92, 231, 0.2);
            color: var(--secondary-color);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .project-links {
            display: flex;
            gap: 15px;
        }

        .project-link {
            display: inline-block;
            padding: 10px 20px;
            background: var(--primary-color);
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .project-link:hover {
            background: var(--accent-color);
            transform: translateY(-3px);
        }

        /* Contacto */
        #contacto {
            padding: 100px 0;
        }

        .contact-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            width: 100%;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .contact-header h3 {
            font-size: 1.8rem;
            margin-bottom: 15px;
            color: var(--primary-color);
        }

        .contact-header p {
            margin-bottom: 30px;
            line-height: 1.8;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 20px;
            background-color: var(--card-bg);
            border-radius: 10px;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .contact-item:hover {
            transform: translateX(10px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .contact-icon {
            font-size: 2rem;
            color: var(--secondary-color);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.1);
        }

        .contact-details {
            display: flex;
            flex-direction: column;
        }

        .contact-type {
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 5px;
        }

        .contact-value {
            color: var(--text-color);
        }

        .nom {
            color: #ffffff;
        }

        .contact-form {
            background-color: var(--card-bg);
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            width: 100%;
        }

        .contact-form h3 {
            margin-bottom: 25px;
            color: var(--primary-color);
            text-align: center;
            font-size: 1.8rem;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 10px;
            font-weight: 500;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            background-color: rgba(0, 0, 0, 0.2);
            color: var(--text-color);
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
        }

        .form-group textarea {
            min-height: 150px;
            resize: vertical;
        }

        .btn {
            padding: 15px 30px;
            background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
            color: white;
            border: none;
            border-radius: 30px;
            cursor: pointer;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            display: block;
            width: 100%;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        }            

        /*Seccion de locación */
        .location-item {
            grid-column: 1 / -1;
            margin: 40px auto 0;
            max-width: 600px;
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 20px;
            background-color: var(--card-bg);
            border-radius: 10px;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .location-item:hover {
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .location-icon {
            font-size: 2rem;
            color: var(--secondary-color);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.1);
        }

        .location-details {
            display: flex;
            flex-direction: column;
        }

        .location-type {
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 5px;
        }

        .location-value {
            color: var(--text-color);
        }

        /* Footer */
        footer {
            text-align: center;
            padding: 40px 0;
            background-color: rgba(20, 20, 20, 0.9);
            margin-top: 50px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Responsive */
        @media (max-width: 992px) {
            .contact-content {
            grid-template-columns: 1fr;
            gap: 40px;
        }
        
        .projects-container {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }
        
        .intro-text h1 {
            font-size: 2.8rem;
        }
        
        .profession {
            font-size: 1.5rem;
        }
        
        .section-title {
            font-size: 2.5rem;
        }
    }

        @media (max-width: 768px) {
        .nav-links {
            display: none;
        }
        
        .projects-container {
            grid-template-columns: 1fr;
        }
        
        .skills-container {
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        }
        
        .profile-img {
            width: 180px;
            height: 180px;
        }
        
        .intro-text h1 {
            font-size: 2.5rem;
        }
        
        .social-icon {
            width: 60px;
            height: 60px;
            font-size: 2.2rem;
        }
        
        .contact-form {
            padding: 25px;
        }
    }
    @media (max-width: 576px) {
        .container {
            padding: 0 15px;
        }
        
        section {
            padding: 80px 0;
        }
        
        .intro-text h1 {
            font-size: 2.2rem;
        }
        
        .profession {
            font-size: 1.3rem;
        }
        
        .section-title {
            font-size: 2.2rem;
        }
        
        .contact-form {
            padding: 20px;
        }
        
        #sobre-mi {
            padding: 40px 20px;
        }
        
        .project-links {
            flex-direction: column;
        }
    }


        /* BOTON VOLVER ARRIBA */
        #btnTop {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 45px;
            height: 45px;
            border: none;
            border-radius: 100px;
            background-color: #1e3a8a;
            color: #fff;
            cursor: pointer;
            display: none;
            align-items: center;
            display: none;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 20px rgb(0,0,0,0.25);
            transition: all 0.3s ease;
            z-index: 1000;
    }
        #btnTop:hover {
            background-color: #2748b5;
            transform: translateY(-3px);
    }
        /* HEADER SOLO MÓVIL */
        .mobile-header {
            display: none;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background: var(--card-bg);
            position: sticky;
            top: 0;
            z-index: 1000;
    }
        
        .logo {
            font-size: 1.2rem;
            font-weight: bold;
            color: var(--primary-color);
    }
        
        .menu-btn {
            font-size: 1.8rem;
            background: none;
            border: none;
            color: white;
            cursor: pointer;
        
    }


        /* BOTÓN HAMBURGUESA */
        .menu-toggle {
            display: none;
            font-size: 1.8rem;
            background: none;
            border: none;
            cursor: pointer;
            color: rgb(255, 255, 255);
    }

        /* MENÚ MÓVIL */
        @media (max-width: 768px) {

        .menu-toggle {
            display: block;
        }

        .nav-links {
            display: none;
            flex-direction: column;
            background: var(--card-bg);
            position: absolute;
            top: 70px;
            right: 20px;
            width: 200px;
            padding: 20px;
            border-radius: 12px;
        }

        .nav-links li {
            margin-bottom: 15px;
        }

        .nav-links.active {
            display: flex;
        }
    }

        /* HABILIDADES EN CELULAR */
        @media (max-width: 768px) {

        .skills-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .skill-item {
            padding: 20px 15px;
        }

        .skill-icon {
            font-size: 3rem;
        }

    }
        @media (max-width: 768px) {

        /* Contenedor */
        .education-container {
            gap: 15px;
        }

        /* Cards */
        .education-card {
            width: calc(50% - 8px);
            padding: 18px 12px;
            border-radius: 14px;
        }

        /* Íconos */
        .education-icon {
            width: 48px;
            height: 48px;
            font-size: 1.4rem;
            margin-bottom: 10px;
        }
    }

        @media (max-width: 480px) {
        .education-subtitle {
            display: none;
        }
    }

        /* Ajuste de scroll para secciones del menú */
        #inicio,
        #sobre-mi {
            scroll-margin-top: 100px;
    }

        @media (max-width: 768px) {
        #inicio,
        #sobre-mi {
            scroll-margin-top: 70px;
        }
    }
