/*--- Estilos Generales ---*/
body{
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: #121212;
    margin: 0;
    padding: 0;
}

main{
    background-color: #f8f9fa;
    color: #333;
}

.section{
    padding: 80px 10px;
    text-align: center;
}

.section h2{
    font-size: 2rem;
    margin-bottom: 30px;
    color: #3a0ca3;
    background: linear-gradient(90deg, #3a0ca3, #7209b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



/*--- Sobre Mi ---*/
.about-section p{
    max-width: 800px;
    margin: auto;
    font-size: 1.1rem;
    line-height: 1.7;
}


/*--- Habilidades ---*/
.skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .skill-card {
            background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
            border-radius: 16px;
            padding: 30px;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
        }

        .skill-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #7209b7, #4361ee);
        }

        .skill-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 30px rgba(67, 97, 238, 0.3);
            border-color: rgba(67, 97, 238, 0.5);
        }

        .skill-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #7209b7, #4361ee);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
        }

        .skill-name {
            color: white;
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .skill-level {
            display: inline-block;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .level-basico {
            background: rgba(52, 211, 153, 0.2);
            color: #34d399;
            border: 1px solid #34d399;
        }

        .level-intermedio {
            background: rgba(251, 191, 36, 0.2);
            color: #fbbf24;
            border: 1px solid #fbbf24;
        }

        .level-avanzado {
            background: rgba(139, 92, 246, 0.2);
            color: #8b5cf6;
            border: 1px solid #8b5cf6;
        }

        .level-experto {
            background: rgba(244, 63, 94, 0.2);
            color: #f43f5e;
            border: 1px solid #f43f5e;
        }



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

.project-card{
    background: #fff;
    color: #333;
    padding: 25px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.project-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.3);
}


/*--- Educacion ---*/
.education-section p{
    font-size: 1.1rem;
    line-height: 1.6;
}


/*--- Contacto ---*/
.contact-form{
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea{
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #fff;
    font-size: 1rem;
    color: #333;
}

.contact-form input:focus,
.contact-form textarea:focus{
    outline: 2px solid #7209b7;
}

/*--- Botones ---*/
.btn-gradient{
    background: linear-gradient(90deg, #ff6b6b, #f06595, #7209b7);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-gradient:hover{
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(114, 9, 183, 0.5);
}



/*--- Responsive ---*/
@media (max-width: 768px){
    .section{
        padding: 60px 5%;
    }
    .skills-grid, .projects-grid{
        grid-template-columns: 1fr;
    }
}