/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --dark: #121212;
    --dark-gray: #1e1e1e;
    --gray: #2d2d2d;
    --light-gray: #3d3d3d;
    --yellow: #FFD700;
    --light-yellow: #FFED4E;
    --white: #ffffff;
}
html {
        scroll-behavior: smooth;
        scroll-padding-top: 40px;

     }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--white);
}

ul {
    list-style: none;
}

.text-yellow {
    color: var(--yellow);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--yellow);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--yellow);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--light-yellow);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.btn-secondary {
    border: 2px solid var(--yellow);
    color: var(--yellow);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: var(--yellow);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background-color: var(--black);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-brand h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-brand span {
    color: var(--yellow);
}

.nav-menu {
    display: flex;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--yellow);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: all 0.3s ease;
}


 /* Estilos para el selector de idiomas */
        .language-selector {
            position: relative;
            margin-left: 20px;
        }
        
        .language-btn {
            background: transparent;
            border: 2px solid var(--yellow);
            color: var(--white);
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
        }
        
        .language-btn:hover {
            background: rgba(255, 215, 0, 0.1);
        }
        
        .language-btn i {
            margin-right: 5px;
            color: var(--yellow);
        }
        
        .language-options {
            position: absolute;
            top: 100%;
            right: 0;
            background: var(--dark-gray);
            border-radius: 5px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            display: none;
            z-index: 1000;
            min-width: 120px;
        }
        
        .language-options.show {
            display: block;
        }
        
        .language-option {
            padding: 10px 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
        }
        
        .language-option:hover {
            background: var(--gray);
        }
        
        .language-option.active {
            background: var(--gray);
            color: var(--yellow);
        }
        
        .language-option span {
            margin-left: 8px;
        }
        
        /* Ajustes para la navegación con el selector de idioma */
        .nav-menu {
            display: flex;
            align-items: center;
        }
        
        @media screen and (max-width: 768px) {
            .language-selector {
                margin: 15px 0;
                width: 100%;
                display: flex;
                justify-content: center;
            }
            
            .language-options {
                left: 50%;
                transform: translateX(-50%);
                right: auto;
            }
        }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: linear-gradient(to right, var(--black) 60%, var(--dark-gray));
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
    animation: fadeIn 1s ease forwards;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--yellow);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 5s ease-in-out infinite;
}

.image-placeholder {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--dark-gray), var(--gray));
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid var(--yellow);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
}

.image-placeholder i {
    font-size: 8rem;
    color: var(--yellow);
}

.img-hero{
    width: 380px;
    height: 380px;
    border-radius: 50%;
}

/* About Section */
.about {
    padding: 6rem 5%;
    background-color: var(--dark);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}



img.foto{
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffd700;
}



.image-placeholder2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--dark-gray), var(--gray));
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid var(--yellow);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
}



/* Skills Section */
.skills {
    padding: 6rem 5%;
    background-color: var(--black);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: var(--dark-gray);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--yellow);
    text-align: center;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: var(--gray);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--yellow);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
}

/* Projects Section */
.projects {
    padding: 6rem 5%;
    background-color: var(--dark);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--dark-gray);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.project-image {
    height: 200px;
    background: var(--gray);
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image i {
    font-size: 4rem;
    color: var(--yellow);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--yellow);
}

.project-content p {
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: var(--gray);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    justify-content: space-between;
}

.project-links a {
    display: flex;
    align-items: center;
    color: var(--yellow);
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: var(--light-yellow);
}

.project-links i {
    margin-right: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 6rem 5%;
    background-color: var(--black);
}

.contact-container {
    display: flex;
    gap: 5rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--yellow);
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--yellow);
    margin-right: 1rem;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-gray);
    color: var(--yellow);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--yellow);
    color: var(--black);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--dark-gray);
    border: 1px solid var(--gray);
    border-radius: 5px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow);
}

.form-group textarea {
    resize: vertical;
}



/* Footer */
.footer {
    text-align: center;
    padding: 2rem 5%;
    background: var(--dark);
    border-top: 1px solid var(--gray);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Responsive */
@media screen and (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 5rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .contact-container {
        flex-direction: column;
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--black);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        
    }.img-hero{
        max-width: 240px;
        max-height: 240px;
    }
    
    
    
    .section-title {
        font-size: 2rem;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .image-placeholder i {
        font-size: 5rem;
    }
    img.foto{
        object-fit: contain;
    }

}

@media screen and (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .skills-container,
    .projects-container {
        grid-template-columns: 1fr;
    }

}

 /* Estilos adicionales para la nueva sección de habilidades */
        .skills-new {
            padding: 6rem 5%;
            background-color: var(--black);
            position: relative;
            overflow: hidden;
        }
        
        .skills-container-new {
            position: relative;
            min-height: 60vh;
            border-radius: 15px;
            background: linear-gradient(135deg, var(--dark-gray), var(--black));
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            padding: 2rem;
        }

        #particles-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .skills-content-new {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .filters {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .filter-btn {
            background: transparent;
            border: 2px solid var(--yellow);
            color: var(--yellow);
            padding: 0.5rem 1.5rem;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
        }

        .filter-btn:hover, .filter-btn.active {
            background: var(--yellow);
            color: var(--black);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .skill-category-new {
            background: rgba(30, 30, 30, 0.7);
            border-radius: 10px;
            padding: 1.5rem;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 215, 0, 0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .skill-category-new:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
        }

        .skill-category-new h3 {
            color: var(--yellow);
            text-align: center;
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .skill-category-new h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 2px;
            background: var(--yellow);
        }

        .skill-list-new {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .skill-item-new {
            display: flex;
            align-items: center;
            background: rgba(45, 45, 45, 0.5);
            padding: 0.8rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .skill-item-new:hover {
            background: rgba(255, 215, 0, 0.1);
            transform: scale(1.02);
        }

        .skill-item-new i {
            font-size: 1.8rem;
            color: var(--yellow);
            margin-right: 1rem;
            width: 30px;
            text-align: center;
        }

        .skill-info {
            flex: 1;
        }

        .skill-name-new {
            font-weight: 600;
            margin-bottom: 0.2rem;
        }

        .skill-level {
            display: flex;
            gap: 0.3rem;
        }

        .level-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--gray);
        }

        .level-dot.active {
            background: var(--yellow);
            box-shadow: 0 0 5px var(--yellow);
        }

        .skill-detail {
            position: absolute;
            background: rgba(30, 30, 30, 0.95);
            border: 2px solid var(--yellow);
            border-radius: 10px;
            padding: 1.5rem;
            max-width: 300px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            z-index: 200;
        }

        .skill-detail h3 {
            color: var(--yellow);
            margin-bottom: 0.5rem;
            font-size: 1.2rem;
        }

        .skill-detail p {
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .skill-detail .level {
            display: flex;
            margin-top: 0.5rem;
        }

        @media (max-width: 768px) {
            .skills-grid {
                grid-template-columns: 1fr;
            }
            
            .filters {
                flex-direction: column;
                align-items: center;
            }
            
            .filter-btn {
                width: 200px;
            }
        }