/* ========================================
   PROYECTOS PERSONALES - Color diferente
   ======================================== */

/* 🎨 Grid para proyectos personales */
.perso-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* 📦 Tarjeta de proyecto personal - Tema púrpura/violeta */
.perso-project-card {
    background: var(--background-card);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
}

/* ✨ Efecto hover púrpura */
.perso-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
    border-color: #ff0000;
}

/* 📸 Imagen del proyecto personal */
.perso-project-image {
    height: 200px;
    background: var(--background-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.perso-project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 📝 Contenido del proyecto personal */
.perso-project-content {
    padding: 1.5rem;
    position: relative;
}

.perso-project-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(135deg, #8b5cf6, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin-bottom: 0.5rem;
}

.perso-project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.perso-project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.perso-tech-tag {
    background: linear-gradient(135deg, #8b5cf6, #ff0000); /* Gradiente púrpura */
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 🎭 Overlay púrpura */
.perso-project-overlay {
    position: absolute;
    top: 200px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, #ff0000 100%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
    font-size: 1.1rem;
    backdrop-filter: blur(4px);
    z-index: 5;
}

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

/* 🔗 Enlace externo púrpura */
.perso-project-external-link {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: #8b5cf6;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    border: 1px solid #a855f7;
}

.perso-project-external-link:hover {
    background: #a855f7;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* 📱 RESPONSIVE para proyectos personales */
@media (max-width: 768px) {
    .perso-projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .perso-project-image {
        display: none;
    }
    
    .perso-project-description {
        display: none;
    }
    
    .perso-project-content {
        padding: 1rem;
    }
    
    .perso-project-title {
        font-size: 1.1rem;           /* Título ligeramente más pequeño */
        margin-bottom: 1rem;         /* Más espacio debajo del título */
        text-align: center;          /* Centrar título */
    }
    
    .perso-project-technologies {
        margin-bottom: 0.5rem;
        justify-content: center;
    }
    
    .perso-project-overlay {
        top: 0;
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, rgba(168, 85, 247, 0.95) 100%);
    }
}

@media (max-width: 480px) {
    .perso-projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .perso-project-content {
        padding: 0.75rem;
    }
    
    .project-title {
        font-size: 1rem;             /* Título más pequeño */
        margin-bottom: 0.75rem;
    }
    
    .perso-tech-tag {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
        border-radius: 0.2rem;
    }
    
    .perso-project-technologies {
        gap: 0.3rem;
    }
}